Fix zoom key modifier for windows

Windows uses Ctrl+= istead of Ctrl++ otherwise
Seen this fix in the signal app
This commit is contained in:
Thomas Nordquist
2019-04-10 10:54:01 +02:00
parent 36b9cc0bea
commit 2590a701bb

View File

@@ -89,7 +89,7 @@ const viewMenu: MenuItemConstructorOptions = {
}, },
{ {
label: 'Increase size', label: 'Increase size',
accelerator: 'CmdOrCtrl+Plus', accelerator: process.platform === 'darwin' ? 'CmdOrCtrl+Plus' : 'Control+Plus',
click: () => { click: () => {
const window = BrowserWindow.getFocusedWindow() const window = BrowserWindow.getFocusedWindow()
if (window) { if (window) {