diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ef581c74..f1568cddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ - An SSH key with a passphrase is unlocked once and kept unlocked in memory for a short time, so connecting to many hosts with it no longer freezes the server for minutes - A change pushed from one linked desktop or phone now reaches your other linked devices right away, instead of on their next check a few minutes later - The macOS menu bar icon shows the Termix logo instead of an empty square +- Cmd+1 (Alt+1 on Windows and Linux) and the other number shortcuts pick the open tabs as numbered in the tab bar, not the home tab ## 26.10.5 diff --git a/src/ui/shell/controller/use-shell-keybindings.ts b/src/ui/shell/controller/use-shell-keybindings.ts index 6f9aac0a6..08bba29f6 100644 --- a/src/ui/shell/controller/use-shell-keybindings.ts +++ b/src/ui/shell/controller/use-shell-keybindings.ts @@ -208,11 +208,12 @@ export function useShellKeybindings({ return; } - // Cmd+1..9 on macOS, Alt+1..9 elsewhere: jump directly to the tab at that position + // Cmd+1..9 on macOS, Alt+1..9 elsewhere: jump directly to the tab at that + // position. The home tab has its own button, so the count starts after it. const tabDigit = getTabJumpDigit(e); if (tabDigit !== null) { const currentTabs = tabsRef.current.filter( - (tab) => !tab.parentSplitTabId, + (tab) => !tab.parentSplitTabId && tab.type !== "dashboard", ); const index = tabDigit - 1; if (index < currentTabs.length) {