From d42af4affc047893e39be6ad25b384cde6c981ff Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Mon, 23 Oct 2023 11:04:09 +0100 Subject: [PATCH] Shortcuts: Prevented help shown when in inputs For #4606 --- resources/js/components/shortcuts.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/js/components/shortcuts.js b/resources/js/components/shortcuts.js index 85a7c3da7..b22c46731 100644 --- a/resources/js/components/shortcuts.js +++ b/resources/js/components/shortcuts.js @@ -29,17 +29,16 @@ export class Shortcuts extends Component { return; } - this.handleShortcutPress(event); - }); - - window.addEventListener('keydown', event => { if (event.key === '?') { if (this.hintsShowing) { this.hideHints(); } else { this.showHints(); } + return; } + + this.handleShortcutPress(event); }); }