mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -05:00
Prevent shortcut from being triggered in input and textarea.
This commit is contained in:
parent
df9fbc4958
commit
46716ad229
@ -39,6 +39,7 @@ customProfiles = do ->
|
|||||||
jQuery(document).on 'keydown', (e) ->
|
jQuery(document).on 'keydown', (e) ->
|
||||||
handler = shortcutKeys[e.keyCode]
|
handler = shortcutKeys[e.keyCode]
|
||||||
return unless handler
|
return unless handler
|
||||||
|
return if e.target.tagName == 'INPUT' or e.target.tagName == 'TEXTAREA'
|
||||||
switch typeof handler
|
switch typeof handler
|
||||||
when 'string'
|
when 'string'
|
||||||
switch handler
|
switch handler
|
||||||
|
Loading…
Reference in New Issue
Block a user