Repository navigation
Conversation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.opencommand, bound by default tomod+/withwhen: "!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.openpattern from #9434:packages/contracts: addskeybindings.opentoSTATIC_KEYBINDING_COMMANDS.packages/shared: adds the defaultmod+/binding. This key had no binding before;?already normalizes to/.apps/web:commandPaletteCommands.ts, next tousage.open;Keybindings: Openin Settings → Keybindings;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:
msg()strings were added inpackages/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.openonmod+,. 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:mod+/navigates to/settings/keybindingsand closes the palette.vp test runon the contracts, server and web keybinding tests andKeybindingsSettings.logic: all pass.vp run i18n:checkpasses.vp run check:changedpasses (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.