mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
https://github.com/Termix-SSH/Support/issues/1264
This commit is contained in:
1 parent
2c8d13323b
commit
42e7861073
4 files changed
+24
-4
No files matched your search
+17
-3
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user