Merge pull request #1485 from MasterEnoc/qm-event

Do not show shortcut help when typing '?' in the search box
pull/1490/head
Simon Legner 4 years ago committed by GitHub
commit 4c6c270065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,7 +37,7 @@ class app.Shortcuts
return return
onKeypress: (event) => 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 unless event.ctrlKey or event.metaKey
result = @handleKeypressEvent event result = @handleKeypressEvent event
event.preventDefault() if result is false event.preventDefault() if result is false

Loading…
Cancel
Save