Problem/Motivation
The shortcuts were added one at a time and follow no rule.
The Builder still answers to c, from its Canvas label before #3631732: Rename Canvas panel, and the Scaffold to g.
The Instances panel has no shortcut, and nothing switches the viewport or reaches a search field.
Proposed resolution
Each panel takes the first letter of its label: i Instances, l Libraries, n Navigator, b Builder, s Scaffold, p Preview.
v steps to the next viewport, and / focuses the search of the open sidebar panel, as on GitHub or Gmail.
Not r for the viewport: Redo has it.
Remaining tasks
- Land #3628842: Settings sidebar: keep it open, close it on request only first: it moves the Settings sidebar from
sto,. keyboardShortcuts()onInstancesPanel, new keys forBuilderPanelandScaffoldPanel.v: the switcher renders one button per viewport, or a dropdown when there are many, so stepping needs a little JS./: declare it/ shift+/. AZERTY types it with Shift, andkeyboard.jsadds Shift to the combo, as zoom in does with+ shift++.- Update the Playwright specs pressing
corg, anddocs/getting-started.md. - WCAG 2.1.4 asks for a way to turn single-key shortcuts off. Track it in #3624637: Plan: Builder accessibility and UX.
User interface changes
The Builder moves from c to b, the Scaffold from g to s.
New: i for Instances, v for the viewport, / for the search.
The shortcut help lists them.
API changes
None. There is no duplicate detection, so a contrib island already using one of the new keys would collide. display_builder_ai uses a.
Data model changes
None.
Issue fork display_builder-3632045
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mogtofu33 commentedComment #6
pdureau commented