agriget/lib/dijit/MenuBar.js
2019-03-22 10:17:29 -04:00

2 lines
1.2 KiB
JavaScript

//>>built
require({cache:{"url:dijit/templates/MenuBar.html":"<div class=\"dijitMenuBar dijitMenuPassive\" data-dojo-attach-point=\"containerNode\" role=\"menubar\" tabIndex=\"${tabIndex}\"\n\t ></div>\n"}});define("dijit/MenuBar",["dojo/_base/declare","dojo/keys","./_MenuBase","dojo/text!./templates/MenuBar.html"],function(_1,_2,_3,_4){return _1("dijit.MenuBar",_3,{templateString:_4,baseClass:"dijitMenuBar",popupDelay:0,_isMenuBar:true,_orient:["below"],_moveToPopup:function(_5){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.onItemClick(this.focusedChild,_5);}},focusChild:function(_6){this.inherited(arguments);if(this.activated&&_6.popup&&!_6.disabled){this._openItemPopup(_6,true);}},_onChildDeselect:function(_7){if(this.currentPopupItem==_7){this.currentPopupItem=null;_7._closePopup();}this.inherited(arguments);},_onLeftArrow:function(){this.focusPrev();},_onRightArrow:function(){this.focusNext();},_onDownArrow:function(_8){this._moveToPopup(_8);},_onUpArrow:function(){},onItemClick:function(_9,_a){if(_9.popup&&_9.popup.isShowingNow&&(!/^key/.test(_a.type)||_a.keyCode!==_2.DOWN_ARROW)){_9.focusNode.focus();this._cleanUp(true);}else{this.inherited(arguments);}}});});