4 * `Polymer.IronMenubarBehavior` implements accessible menubar behavior.
6 * @polymerBehavior Polymer.IronMenubarBehavior
8 Polymer.IronMenubarBehaviorImpl = {
16 'right': '_onRightKey'
19 _onUpKey: function(event) {
20 this._activateFocused(event.detail.keyboardEvent);
23 _onDownKey: function(event) {
24 this._activateFocused(event.detail.keyboardEvent);
27 _onLeftKey: function() {
28 this._focusPrevious();
31 _onRightKey: function() {
35 _onKeydown: function(event) {
36 if (this.keyboardEventMatchesKeys(event, 'up down left right esc enter')) {
40 // all other keys focus the menu item starting with that character
41 this._focusWithKeyboardEvent(event);
46 /** @polymerBehavior Polymer.IronMenubarBehavior */
47 Polymer.IronMenubarBehavior = [
48 Polymer.IronMenuBehavior,
49 Polymer.IronMenubarBehaviorImpl