Skip to content

Commit 77c8747

Browse files
fix(keybindings): thread jumps no longer overlap model picker jumps (pingdotgg#14475)
1 parent e61eba4 commit 77c8747

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎docs/user/keybindings.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ the keyboard. `isWeb` is true in a browser tab. `isDesktop` is true in the
111111
desktop app. Unknown keys evaluate to `false`.
112112

113113
`mod+1` through `mod+9` jump to the first nine threads, and to models while the
114-
model picker is open. Those defaults use `isDesktop` so they do not steal the
114+
model picker is open. The thread jumps do not run while the model picker is open.
115+
Those defaults use `isDesktop` so they do not steal the
115116
browser's tab-switch shortcuts. Remove that condition in Settings if you want
116117
the same jumps in a browser.
117118

‎packages/shared/src/keybindings.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const DEFAULT_KEYBINDINGS: ReadonlyArray<KeybindingRule> = [
193193
...THREAD_JUMP_KEYBINDING_COMMANDS.map((command, index) => ({
194194
key: `mod+${index + 1}`,
195195
command,
196-
when: "isDesktop",
196+
when: "!modelPickerOpen && isDesktop",
197197
})),
198198
...MODEL_PICKER_JUMP_KEYBINDING_COMMANDS.map((command, index) => ({
199199
key: `mod+${index + 1}`,

0 commit comments

Comments
 (0)