From 4d885efd716a2a798248234dc1c1929605500193 Mon Sep 17 00:00:00 2001 From: Enoc Date: Sat, 20 Feb 2021 01:12:26 -0600 Subject: [PATCH] Do not show shortcut help when typing '?' in the search box --- assets/javascripts/app/shortcuts.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/app/shortcuts.coffee b/assets/javascripts/app/shortcuts.coffee index 5755a71d..7cdfe9e4 100644 --- a/assets/javascripts/app/shortcuts.coffee +++ b/assets/javascripts/app/shortcuts.coffee @@ -37,7 +37,7 @@ class app.Shortcuts return onKeypress: (event) => - return if @buggyEvent(event) + return if @buggyEvent(event) or (event.charCode == 63 and document.activeElement.tagName == 'INPUT') unless event.ctrlKey or event.metaKey result = @handleKeypressEvent event event.preventDefault() if result is false