Keybinds fixes (Zoom & DevTools now consistent with chrome/discord desktop) (#254)

This commit is contained in:
Ven 2022-11-17 21:23:55 +01:00 committed by GitHub
parent b72b7f29f3
commit 842b6e8c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ export async function setMenu() {
label: "Developer tools",
accelerator: "CmdOrCtrl+Shift+I",
click: function () {
mainWindow.webContents.openDevTools();
mainWindow.webContents.toggleDevTools();
}
},
{
@ -97,6 +97,9 @@ export async function setMenu() {
label: "Zoom",
submenu: [
{label: "Zoom in", accelerator: "CmdOrCtrl+Plus", role: "zoomIn"},
// Fix for zoom in on keyboards with dedicated + like QWERTZ (or numpad)
// See https://github.com/electron/electron/issues/14742 and https://github.com/electron/electron/issues/5256
{label: "Zoom in", accelerator: "CmdOrCtrl+=", role: "zoomIn", visible: false},
{label: "Zoom out", accelerator: "CmdOrCtrl+-", role: "zoomOut"}
]
}