TypeScript
fix(keybindings): thread jumps no longer overlap model picker jumps (#14475)
Fluffy-Bunny-2377c8747150d0
diff --git a/docs/user/keybindings.md b/docs/user/keybindings.mdindex 5523b5aa3c9..5a0a699e10d 100644--- a/docs/user/keybindings.md+++ b/docs/user/keybindings.md@@ -111,7 +111,8 @@ the keyboard. `isWeb` is true in a browser tab. `isDesktop` is true in thedesktop app. Unknown keys evaluate to `false`.`mod+1` through `mod+9` jump to the first nine threads, and to models while the-model picker is open. Those defaults use `isDesktop` so they do not steal the+model picker is open. The thread jumps do not run while the model picker is open.+Those defaults use `isDesktop` so they do not steal thebrowser's tab-switch shortcuts. Remove that condition in Settings if you wantthe same jumps in a browser.diff --git a/packages/shared/src/keybindings.ts b/packages/shared/src/keybindings.tsindex 7620b2432a7..53a2aa5d3ef 100644--- a/packages/shared/src/keybindings.ts+++ b/packages/shared/src/keybindings.ts@@ -193,7 +193,7 @@ export const DEFAULT_KEYBINDINGS: ReadonlyArray<KeybindingRule> = [...THREAD_JUMP_KEYBINDING_COMMANDS.map((command, index) => ({key: `mod+${index + 1}`,command,- when: "isDesktop",+ when: "!modelPickerOpen && isDesktop",})),...MODEL_PICKER_JUMP_KEYBINDING_COMMANDS.map((command, index) => ({key: `mod+${index + 1}`,