mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-10 06:15:17 +00:00
Merge pull request #185 from vector-im/gsouquet-exit-shortcut
Fix exit shortcuts for non QWERTY keyboards
This commit is contained in:
commit
5ae736e861
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue