Fix exit shortcuts for non QWERTY keyboards

This commit is contained in:
Germain Souquet 2021-04-15 16:50:35 +01:00
parent adfb4a424a
commit 29d22aefd7

View File

@ -256,9 +256,9 @@ let mainWindow = null;
global.appQuitting = false; global.appQuitting = false;
const exitShortcuts = [ const exitShortcuts = [
(input, platform) => platform !== 'darwin' && input.alt && input.code === 'F4', (input, platform) => platform !== 'darwin' && input.alt && input.key.toUpperCase() === 'F4',
(input, platform) => platform !== 'darwin' && input.control && input.code === 'KeyQ', (input, platform) => platform !== 'darwin' && input.control && input.key.toUpperCase() === 'Q',
(input, platform) => platform === 'darwin' && input.meta && input.code === 'KeyQ', (input, platform) => platform === 'darwin' && input.meta && input.key.toUpperCase() === 'Q',
]; ];
const warnBeforeExit = (event, input) => { const warnBeforeExit = (event, input) => {