Tab and shift tab are not handled specially anymore. This allows the focus to not be trapped inside anymore.
'ARROW_UP': 'up',
'ARROW_DOWN': 'down',
'ARROW_LEFT': 'close',
- 'ESCAPE': 'closeAll',
- 'TAB': 'down',
- 'SHIFT_TAB': 'up'
+ 'ESCAPE': 'closeAll'
});
}
return;
}
});
+
Foundation.Keyboard.handleKey(e, 'AccordionMenu', {
open: function() {
if ($target.is(':hidden')) {
}
},
up: function() {
- $prevElement.attr('tabindex', -1).focus();
+ $prevElement.focus();
return true;
},
down: function() {
- $nextElement.attr('tabindex', -1).focus();
+ $nextElement.focus();
return true;
},
toggle: function() {