[devdocsgjs/main: 1519/1867] Do not show shortcut help when typing '?' in the search box
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1519/1867] Do not show shortcut help when typing '?' in the search box
- Date: Fri, 19 Nov 2021 23:48:07 +0000 (UTC)
commit 4d885efd716a2a798248234dc1c1929605500193
Author: Enoc <brianhernandez222 hotmail com>
Date: Sat Feb 20 01:12:26 2021 -0600
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]