mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Keybinds fixes (Zoom & DevTools now consistent with chrome/discord desktop) (#254)
This commit is contained in:
parent
b72b7f29f3
commit
842b6e8c5d
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,7 @@ export async function setMenu() {
|
||||||
label: "Developer tools",
|
label: "Developer tools",
|
||||||
accelerator: "CmdOrCtrl+Shift+I",
|
accelerator: "CmdOrCtrl+Shift+I",
|
||||||
click: function () {
|
click: function () {
|
||||||
mainWindow.webContents.openDevTools();
|
mainWindow.webContents.toggleDevTools();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -97,6 +97,9 @@ export async function setMenu() {
|
||||||
label: "Zoom",
|
label: "Zoom",
|
||||||
submenu: [
|
submenu: [
|
||||||
{label: "Zoom in", accelerator: "CmdOrCtrl+Plus", role: "zoomIn"},
|
{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"}
|
{label: "Zoom out", accelerator: "CmdOrCtrl+-", role: "zoomOut"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue