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:
+1
-1
@@ -677,7 +677,7 @@ function getAppMenu() {
|
||||
const fileMenu: Electron.MenuItemConstructorOptions[] = [
|
||||
{
|
||||
label: "New Window",
|
||||
accelerator: "CommandOrControl+N",
|
||||
accelerator: "CommandOrControl+Shift+N",
|
||||
click: () => fireAndForget(createNewWaveWindow),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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