Skip to content

feat(web): open Settings → Keybindings with mod+/ - #43717

Draft
Ayomi-gh wants to merge 1 commit into
pingdotgg:mainfrom
Ayomi-gh:feat/keybindings-open-shortcut
Draft

Ayomi-gh wants to merge 1 commit into
pingdotgg:mainfrom
Ayomi-gh:feat/keybindings-open-shortcut

Conversation

@Ayomi-gh

Copy link
Copy Markdown

Problem

There is no keyboard path to the list of keyboard shortcuts. Settings → Keybindings is only reachable with the mouse, and no command opens it, so users can't bind one themselves. Many apps use ⌘/ for this (Slack, Linear, GitHub, Google Docs).

Change

Adds a keybindings.open command, bound by default to mod+/ with when: "!terminalFocus". It closes the command palette if open and navigates to /settings/keybindings. The command palette also gets an Open keyboard shortcuts action, which shows the ⌘/ hint.

This copies the usage.open pattern from #9434:

  • packages/contracts: adds keybindings.open to STATIC_KEYBINDING_COMMANDS.
  • packages/shared: adds the default mod+/ binding. This key had no binding before; ? already normalizes to /.
  • apps/web:
    • adds the handler in commandPaletteCommands.ts, next to usage.open;
    • adds the palette action;
    • adds the label Keybindings: Open in Settings → Keybindings;
    • adds the two new strings to all 10 locale catalogs. I inserted the keys by hand to avoid reordering whole files.
  • docs/user/keybindings.md: one sentence about the shortcut.

Esc closes the page, like any other settings page. ⌘/ only opens it. Unlike ⌘U on Usage, it does not toggle, which would need a separate listener inside the settings route.

Surfaces:

  • Web and desktop share this code.
  • Desktop has no menu accelerators to update.
  • Mobile has no Keybindings page, so it is unaffected.
  • No msg() strings were added in packages/shared.

Scope

This is a small feature, not a bug fix, and no maintainer asked for it. I've opened an Ideas discussion for it: (link to follow). A related open discussion is #43508, which proposes settings.open on mod+,. The two fit together: ⌘, opens Settings, ⌘/ opens the shortcuts list.

Verification

Before (main): searching the palette for "keyboard" finds only settings search results, and ⌘/ does nothing.

After: the palette shows Open keyboard shortcuts with ⌘/.

After: ⌘/ from a thread, including with the composer focused, opens Settings → Keybindings. Esc returns to the thread.

After: the new binding appears in the list under Other.

Tests:

  • commandPaletteCommands.browser.test.tsx:
    • A new test checks that mod+/ navigates to /settings/keybindings and closes the palette.
    • The held-key test now also checks that a repeated ⌘/ is ignored.
    • Both tests fail without the handler.
  • vp test run on the contracts, server and web keybinding tests and KeybindingsSettings.logic: all pass.
  • vp run i18n:check passes.
  • vp run check:changed passes (format, lint, knip, typecheck, tests, React Compiler).

Manual checks in a local dev server (web, macOS Chromium) are shown in the screenshots above. I did not run the desktop build.

Generated with claude-opus-5.5 in T3 Code using the ACP harness.

There was no keyboard path to the shortcuts list, and no command a user
could bind to open it. Add a `keybindings.open` command (default `mod+/`,
`!terminalFocus`) plus an "Open keyboard shortcuts" palette action,
following the `usage.open` pattern.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 26, 2026

This branch has not been deployed

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

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant