Skip to content

Remove inconsistent panel keyboard shortcuts from the rail#36

Merged
DavidBabinec merged 1 commit into
mainfrom
feat/remove-panel-shortcuts
Jun 11, 2026
Merged

Remove inconsistent panel keyboard shortcuts from the rail#36
DavidBabinec merged 1 commit into
mainfrom
feat/remove-panel-shortcuts

Conversation

@DavidBabinec

Copy link
Copy Markdown
Contributor

What

The left-rail panel buttons advertised keyboard shortcuts in their tooltips:

Panel Tooltip shortcut
Site Ctrl+⇧E
Media Ctrl+⇧M
Properties Ctrl+⇧R
AI assistant ⌘I

But only 4 of ~10 rail panels had a shortcut — the other panels (Layers, Selectors, Colors, Typography, Spacing, Dependencies) had none. The affordance was inconsistent and not fully wired across the rail, so this PR removes all four panel-toggle shortcuts.

Changes

  • keybindings.ts — remove the four panels.toggle* registry entries (keeping panels.cycleFocus/F6).
  • PanelRail.tsx — drop the keydown handler and the commandId → shortcut/aria derivation. Rail buttons no longer render a shortcut hint in their tooltip or aria-keyshortcuts. Plugin-supplied shortcutLabel is unaffected.
  • keybindings-registry-single-source.test.ts — drop PanelRail.tsx from the allowlist; it no longer routes through the registry.
  • editorLayoutPersistence.test.tsx — update the three tests that fired the removed shortcuts (now exercise the rail buttons / panel placement directly).

Not changed

Panels stay toggleable from the command palette — the panels.toggle* spotlight commands are untouched. Every panel already has a palette toggle command and none carry a keyboard shortcut, so this leaves the palette fully consistent.

Verification

  • bun run build
  • bun run lint
  • bun test for the touched layout + architecture + spotlight suites ✅

🤖 Generated with Claude Code

The left-rail panel buttons advertised keyboard shortcuts in their tooltips
(Site Ctrl+⇧E, Media Ctrl+⇧M, Properties Ctrl+⇧R, AI assistant ⌘I) but only
4 of ~10 rail panels had one, so the affordance was inconsistent and partly
unwired. Drop the four panel-toggle keybindings entirely.

- Remove the four `panels.toggle*` entries from the keybindings registry
  (keeping `panels.cycleFocus`/F6).
- Drop the PanelRail keydown handler and the commandId → shortcut/aria
  derivation; rail buttons no longer render a shortcut hint or
  aria-keyshortcuts (plugin-supplied shortcutLabel is unaffected).
- Drop PanelRail from the keybindings architecture-test allowlist — it no
  longer routes through the registry.
- Update the layout tests that exercised the removed shortcuts.

Panels remain toggleable from the command palette (the `panels.toggle*`
spotlight commands are unchanged), which is consistent across all panels.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@DavidBabinec DavidBabinec merged commit 138c13c into main Jun 11, 2026
6 checks passed
@DavidBabinec DavidBabinec deleted the feat/remove-panel-shortcuts branch June 13, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant