Skip to content

Pressing Escape in the Link inline toolbar doesn't restore previous caret position #14026

Closed

Description

@afercia

When actually inserting/updating a new link, everything seems to work nicely:

  • test using only the keyboard
  • insert or edit a link
  • press the "Apply" button
  • the inline toolbar closes and the previous selection or caret position are restored correctly

However, when pressing Escape to cancel the action and close the Link inline toolbar, the caret position or previous selection are not restored

  • try to insert a link or edit an existing one by pressing Cmd(Ctrl) + K
  • instead of pressing the "Apply" button, press Escape on your keyboard
  • the inline toolbar closes
  • the caret is now at the beginning of the content: instead, it should return to the previous position
  • in the case of an existing link, the previous selection still looks "selected" but the caret is at the beginning of the content:

screenshot 2019-02-21 at 18 02 49

In the above case, there's also one more issue: clicking on other parts of the content doesn't dismiss the inline toolbar.

See also #14001 (comment)

Activity

  1. added
    [Type] Bug
    [Focus] Accessibility (a11y)
    on Feb 21, 2019
  2. paaljoachim commented on Jan 18, 2021

    @paaljoachim
    Contributor

    From my testing this is different now then it was back in February 2019.

    @joedolson Joe. As Andrea is away I am pinging you to this issue.

  3. joedolson commented on Jan 22, 2021

    @joedolson
    Contributor

    Agree. This appears to work as expected in trunk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Focus] Accessibility (a11y)[Package] Format library[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions