mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Do not show shortcut help when typing '?' in the search box
This commit is contained in:
parent
38e07247a9
commit
4d885efd71
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue