fix(keybindings): thread jumps no longer overlap model picker jumps (#14475)

This commit is contained in:
Fluffy-Bunny-23 authored and GitHub committed 2026-10-11 03:01:13 +00:00
1 parent e61eba4745
commit 77c8747150
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -111,7 +111,8 @@ the keyboard. `isWeb` is true in a browser tab. `isDesktop` is true in the
desktop 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 the
browser's tab-switch shortcuts. Remove that condition in Settings if you want
the same jumps in a browser.
+1 -1
View File
@@ -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}`,