Prevent shortcut from being triggered in input and textarea.

This commit is contained in:
FelisCatus 2015-01-16 20:44:21 +08:00
parent df9fbc4958
commit 46716ad229

View File

@ -39,6 +39,7 @@ customProfiles = do ->
jQuery(document).on 'keydown', (e) ->
handler = shortcutKeys[e.keyCode]
return unless handler
return if e.target.tagName == 'INPUT' or e.target.tagName == 'TEXTAREA'
switch typeof handler
when 'string'
switch handler