mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 15:15:24 +00:00
fix: number shortcuts skip the home tab (#1724)
This commit is contained in:
1 parent
474996b6e0
commit
034d68b163
2 files changed
+4
-2
No files matched your search
@@ -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
|
- 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
|
- 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
|
- 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
|
## 26.10.5
|
||||||
|
|
||||||
|
|||||||
@@ -208,11 +208,12 @@ export function useShellKeybindings({
|
|||||||
return;
|
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);
|
const tabDigit = getTabJumpDigit(e);
|
||||||
if (tabDigit !== null) {
|
if (tabDigit !== null) {
|
||||||
const currentTabs = tabsRef.current.filter(
|
const currentTabs = tabsRef.current.filter(
|
||||||
(tab) => !tab.parentSplitTabId,
|
(tab) => !tab.parentSplitTabId && tab.type !== "dashboard",
|
||||||
);
|
);
|
||||||
const index = tabDigit - 1;
|
const index = tabDigit - 1;
|
||||||
if (index < currentTabs.length) {
|
if (index < currentTabs.length) {
|
||||||
|
|||||||
Reference in new issue
Block a user