From 3a160d089b7ebae81347984b4c187776a5291b19 Mon Sep 17 00:00:00 2001 From: Davis Family <20144454+hkup859@users.noreply.github.com> Date: Wed, 22 Feb 2023 05:28:32 -0500 Subject: [PATCH] Disable ctrl+alt+/ from showing shortcut guide --- ts/background.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/background.ts b/ts/background.ts index e563e541978..13dc5bed94a 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();