Add core:focus-next/focus-previous

Focus now cycles between elements with a positive tabindex on
tab and shift-tab.
This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-05-16 15:00:55 -07:00
parent 76e7161608
commit 001183245e
3 changed files with 134 additions and 2 deletions

View File

@@ -67,10 +67,10 @@
# allow standard input fields to work correctly
'input:not(.hidden-input)':
'tab': 'core:focus-next'
'shift-tab': 'core:focus-previous'
'left': 'native!'
'right': 'native!'
'tab': 'native!'
'shift-tab': 'native!'
'shift-left': 'native!'
'shift-right': 'native!'
'backspace': 'native!'
@@ -81,3 +81,7 @@
'meta-x': 'native!'
'meta-c': 'native!'
'meta-v': 'native!'
'button':
'tab': 'core:focus-next'
'shift-tab': 'core:focus-previous'