diff --git a/ts/background.ts b/ts/background.ts index e563e54197..13dc5bed94 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1289,7 +1289,7 @@ export async function startApp(): Promise { }); document.addEventListener('keydown', event => { - const { ctrlKey, metaKey, shiftKey } = event; + const { ctrlKey, metaKey, shiftKey, altKey } = event; const commandKey = window.platform === 'darwin' && metaKey; const controlKey = window.platform !== 'darwin' && ctrlKey; @@ -1305,7 +1305,7 @@ export async function startApp(): Promise { // Show keyboard shortcuts - handled by Electron-managed keyboard shortcuts // However, on linux Ctrl+/ selects all text, so we prevent that - if (commandOrCtrl && key === '/') { + if (commandOrCtrl && !altKey && key === '/') { window.Events.showKeyboardShortcuts(); event.stopPropagation();