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); }); }