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 s to ,.
  • keyboardShortcuts() on InstancesPanel, new keys for BuilderPanel and ScaffoldPanel.
  • 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, and keyboard.js adds Shift to the combo, as zoom in does with + shift++.
  • Update the Playwright specs pressing c or g, and docs/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.

Command icon 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

mogtofu33 created an issue. See original summary.

  • mogtofu33 committed 95096483 on 1.0.x
    feat: #3632045 Shortcuts revised: one letter per panel, v for the next...
mogtofu33’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

pdureau’s picture

Status: Fixed » Closed (fixed)