Browse Source

Prevent shortcut from being triggered in input and textarea.

FelisCatus 11 years ago
parent
commit
46716ad229
1 changed files with 1 additions and 0 deletions
  1. 1 0
      omega-web/src/coffee/popup.coffee

+ 1 - 0
omega-web/src/coffee/popup.coffee

@@ -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