Skip to content

Escape key doesn't close the block toolbar any longer #65562

Open

Description

Description

Previously: #50594

It appears the expected behavior of the Escape key regressed, not sure when and why. The excpeted behavior is well described on #50594: when focus in in the block toolbar, Escape should move focus back to the block and close the toolbar. Instead, while focus is moved back correctly, the block toolbar now stays open.

Cc @youknowriad for any thoughts on where this may have changed.

Step-by-step reproduction instructions

  • Edit a post.
  • Select a paragraph.
  • Press Shift + Tab to move focus to the block toolbar.
  • Once focus is on the block toolbar, press the Escape key.
  • Observe focus is moved back to the block. So far so good.
  • Observe the block toolbar stays open. Expected: the block toolbar to close.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

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

Metadata

Assignees

No one assigned

    Labels

    [Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] RegressionRelated to a regression in the latest releaseRelated to a regression in the latest release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions