feat: 添加快捷键逻辑.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
@@ -80,5 +80,5 @@ export interface TerminalShortcutKey {
|
||||
ctrlKey: boolean;
|
||||
shiftKey: boolean;
|
||||
altKey: boolean;
|
||||
key: string;
|
||||
code: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user