Allow native event handling for non-editor input elements

This allows arrow keys, tab, etc. to work properly inside input
elements.
This commit is contained in:
Nathan Sobo
2013-04-09 19:10:03 -06:00
committed by Corey Johnson & Kevin Sawicki
parent 6c640133f1
commit 91e3fbd2d8
2 changed files with 26 additions and 0 deletions

View File

@@ -56,3 +56,20 @@
'meta-escape': 'tool-panel:unfocus'
'escape': 'core:close'
'meta-w': 'noop'
# allow standard input fields to work correctly
'input:not(.hidden-input)':
'left': 'native!'
'right': 'native!'
'tab': 'native!'
'shift-tab': 'native!'
'shift-left': 'native!'
'shift-right': 'native!'
'backspace': 'native!'
'shift-backspace': 'native!'
'delete': 'native!'
'meta-z': 'native!'
'meta-Z': 'native!'
'meta-x': 'native!'
'meta-c': 'native!'
'meta-v': 'native!'

View File

@@ -22,3 +22,12 @@
'alt-h': 'editor:backspace-to-beginning-of-word'
'alt-d': 'editor:delete-to-end-of-word'
'ctrl-k': 'editor:cut-to-end-of-line'
# allow standard input fields to work correctly
'input:not(.hidden-input)':
'ctrl-b': 'native!'
'ctrl-f': 'native!'
'ctrl-F': 'native!'
'ctrl-B': 'native!'
'ctrl-h': 'native!'
'ctrl-d': 'native!'