mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-19 07:54:59 +01:00
Fix exit shortcuts for non QWERTY keyboards
This commit is contained in:
parent
adfb4a424a
commit
29d22aefd7
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user