Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): change shortcuts reference hotkey from Cmd+/ to ? (#46279)

Ali Waseem272d019fb0c2
diff --git a/apps/studio/state/shortcuts/registry.ts b/apps/studio/state/shortcuts/registry.ts
index fd649ba2890..da427efdd28 100644
--- a/apps/studio/state/shortcuts/registry.ts
+++ b/apps/studio/state/shortcuts/registry.ts
@@ -399,7 +399,10 @@ export const SHORTCUT_DEFINITIONS: Record<ShortcutId, ShortcutDefinition> = {
[SHORTCUT_IDS.SHORTCUTS_OPEN_REFERENCE]: {
id: SHORTCUT_IDS.SHORTCUTS_OPEN_REFERENCE,
label: 'Show all keyboard shortcuts',
- sequence: ['Mod+/'],
+ // '?' isn't yet in @tanstack/hotkeys' PunctuationKey union (TanStack/hotkeys#19),
+ // but matches correctly at runtime — event.key === '?' regardless of layout.
+ // @ts-expect-error — remove this once upstream adds '?' to PunctuationKey.
+ sequence: ['Shift+?'],
showInSettings: false,
options: { ignoreInputs: true },
},