mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
cmd:n and cmd:t
This commit is contained in:
@@ -247,10 +247,16 @@ function appHandleKeyDown(waveEvent: WaveKeyboardEvent): boolean {
|
||||
switchTab(-1);
|
||||
return true;
|
||||
}
|
||||
if (keyutil.checkKeyPressed(waveEvent, "Cmd:t")) {
|
||||
if (keyutil.checkKeyPressed(waveEvent, "Cmd:n")) {
|
||||
handleCmdT();
|
||||
return true;
|
||||
}
|
||||
if (keyutil.checkKeyPressed(waveEvent, "Cmd:t")) {
|
||||
const workspace = globalStore.get(atoms.workspace);
|
||||
const newTabName = `T${workspace.tabids.length + 1}`;
|
||||
services.ObjectService.AddTabToWorkspace(newTabName, true);
|
||||
return true;
|
||||
}
|
||||
for (let idx = 1; idx <= 9; idx++) {
|
||||
if (keyutil.checkKeyPressed(waveEvent, `Cmd:${idx}`)) {
|
||||
switchTabAbs(idx);
|
||||
|
||||
Reference in New Issue
Block a user