feat: 添加快捷键逻辑.

This commit is contained in:
lijiahang
2024-01-16 16:04:34 +08:00
parent 18962c5e99
commit 80829b51c1
7 changed files with 134 additions and 41 deletions

View File

@@ -143,6 +143,15 @@ export default defineStore('terminal', {
});
},
// 复制并且打开终端
openCopyTerminal(hostId: number) {
const host = this.hosts.hostList
.find(s => s.id === hostId);
if (host) {
this.openTerminal(host);
}
}
},
});

View File

@@ -80,5 +80,5 @@ export interface TerminalShortcutKey {
ctrlKey: boolean;
shiftKey: boolean;
altKey: boolean;
key: string;
code: string;
}