X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=lib%2Fdijit%2FDropDownMenu.js;fp=lib%2Fdijit%2FDropDownMenu.js;h=98c960769c05b0fbcc28f64b1eeaf8ab551e0e26;hb=6887a0f57307820b097b51aee952c555bcf69024;hp=dd60d3c93614e93f24e859dd3f9c28786c68f249;hpb=9f539be3c2c93ce358b10ca396e922b3b99b56ea;p=tt-rss.git diff --git a/lib/dijit/DropDownMenu.js b/lib/dijit/DropDownMenu.js index dd60d3c9..98c96076 100644 --- a/lib/dijit/DropDownMenu.js +++ b/lib/dijit/DropDownMenu.js @@ -1,2 +1,2 @@ //>>built -require({cache:{"url:dijit/templates/Menu.html":"\n\t\n
\n"}});define("dijit/DropDownMenu",["dojo/_base/declare","dojo/_base/event","dojo/keys","dojo/text!./templates/Menu.html","./_OnDijitClickMixin","./_MenuBase"],function(_1,_2,_3,_4,_5,_6){return _1("dijit.DropDownMenu",[_6,_5],{templateString:_4,baseClass:"dijitMenu",postCreate:function(){this.inherited(arguments);var l=this.isLeftToRight();this._openSubMenuKey=l?_3.RIGHT_ARROW:_3.LEFT_ARROW;this._closeSubMenuKey=l?_3.LEFT_ARROW:_3.RIGHT_ARROW;this.connectKeyNavHandlers([_3.UP_ARROW],[_3.DOWN_ARROW]);},_onKeyPress:function(_7){if(_7.ctrlKey||_7.altKey){return;}switch(_7.charOrCode){case this._openSubMenuKey:this._moveToPopup(_7);_2.stop(_7);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{_2.stop(_7);}break;}}});}); \ No newline at end of file +require({cache:{"url:dijit/templates/Menu.html":"\n\t\n
\n"}});define("dijit/DropDownMenu",["dojo/_base/declare","dojo/keys","dojo/text!./templates/Menu.html","./_MenuBase"],function(_1,_2,_3,_4){return _1("dijit.DropDownMenu",_4,{templateString:_3,baseClass:"dijitMenu",_onUpArrow:function(){this.focusPrev();},_onDownArrow:function(){this.focusNext();},_onRightArrow:function(_5){this._moveToPopup(_5);_5.stopPropagation();_5.preventDefault();},_onLeftArrow:function(_6){if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{_6.stopPropagation();_6.preventDefault();}}});}); \ No newline at end of file