Skip to content

Blocks: Alt+F10 should navigate to block toolbar regardless of visibility #10907

@aduth

Description

@aduth

Currently, Alt+F10 only works to navigate to the block toolbar if it is visible. When not using the Unified Toolbar setting, the toolbar is made invisible while a user is typing. Thus, the user must take steps to reactivate the block toolbar before being able to press Alt+F10.

Steps to reproduce:

  1. (Prerequisite) If not already, disable Unified Toolbar
  2. Insert paragraph block
  3. Press some characters to activate "typing mode", thus making toolbar invisible
  4. Press Alt+F10

Expected: Focus is shifted into block toolbar
Actual: Focus is shifted to header toolbar

Task:

Alt+F10 should shift focus into the block toolbar, regardless of visibility.

Technical notes:

Note that there are multiple toolbars which are meant to respond to the keyboard shortcut. See #10699.

The tricky point is in interoperating with React lifecycle to move focus to a yet-unrendered element. See #10699 (comment) .

Metadata

Metadata

Labels

[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Priority] HighUsed to indicate top priority items that need quick attention[Type] TaskIssues or PRs that have been broken down into an individual action to take

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions