mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
suppress Cmd-W (close window)
This commit is contained in:
@@ -104,6 +104,11 @@ function createMainWindow(size : {width : number, height : number}) {
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (input.code == "KeyW" && input.meta) {
|
||||
e.preventDefault();
|
||||
win.webContents.send("w-cmd", mods);
|
||||
return;
|
||||
}
|
||||
//if (input.code == "KeyR" && input.meta && input.alt) {
|
||||
// createRemotesWindow();
|
||||
// e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user