From 7b001d39bc7e94e102b28d9773def8a10556ccf2 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Thu, 26 Mar 2020 21:31:11 +0800 Subject: [PATCH] fix Shortcut conflict #279 --- public/menu.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/menu.js b/public/menu.js index f166b4f3..14310ec8 100644 --- a/public/menu.js +++ b/public/menu.js @@ -122,7 +122,14 @@ module.exports = (app, mainWindow, newVersion) => { ], }, - { role: 'windowMenu' }, + // On Windows the windowMenu has a close Ctrl+W which clashes with File->Close shortcut + ...(process.platform === 'darwin' + ? [{ role: 'windowMenu' }] + : [{ + label: 'Window', + submenu: [{ role: 'minimize' }], + }] + ), { label: 'Tools',