https://github.com/Termix-SSH/Support/issues/1264
This commit is contained in:
LukeGus committed 2026-09-20 18:15:45 -05:00
1 parent 2c8d13323b
commit 42e7861073
4 files changed
+24 -4

No files matched your search

+17 -3
View File
@@ -517,9 +517,12 @@ export function AppShell({
).filter(
(binding) =>
binding.enabled &&
["nextTab", "previousTab", "openCommandPalette"].includes(
binding.action.type,
),
[
"nextTab",
"previousTab",
"openCommandPalette",
"reconnectSession",
].includes(binding.action.type),
);
})
.catch(() => {});
@@ -538,6 +541,17 @@ export function AppShell({
setCommandPaletteOpen(true);
return;
}
if (type === "reconnectSession") {
const tabId = activeTabIdRef.current;
if (!tabId) return;
const termRef = terminalRefs.current.get(tabId);
(
termRef?.current as
| import("@/features/terminal/Terminal").TerminalHandle
| null
)?.reconnect();
return;
}
const currentTabs = tabsRef.current;
if (currentTabs.length < 2) return;
const index = currentTabs.findIndex(