diff options
| author | Barak Korren <barak.korren@gmail.com> | 2013-04-02 20:38:07 +0300 |
|---|---|---|
| committer | Barak Korren <barak.korren@gmail.com> | 2013-04-02 20:38:07 +0300 |
| commit | 58a2577d48790c79adfd44bcfd662c980ce6cfe4 (patch) | |
| tree | 523d814ea0b7b6f617fe515b186099c6e83fed72 /lib/dijit/DropDownMenu.js.uncompressed.js | |
| parent | e470a273cf09562fb2f9c0c899002303f19c8d16 (diff) | |
| parent | cc332603431102a682feda22b9cf0093a29f0176 (diff) | |
Merge branch 'master' of https://github.com/gothfox/Tiny-Tiny-RSS.git
Diffstat (limited to 'lib/dijit/DropDownMenu.js.uncompressed.js')
| -rw-r--r-- | lib/dijit/DropDownMenu.js.uncompressed.js | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/dijit/DropDownMenu.js.uncompressed.js b/lib/dijit/DropDownMenu.js.uncompressed.js deleted file mode 100644 index 0d5234c98..000000000 --- a/lib/dijit/DropDownMenu.js.uncompressed.js +++ /dev/null @@ -1,58 +0,0 @@ -require({cache:{ -'url:dijit/templates/Menu.html':"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\"\n\t data-dojo-attach-event=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" data-dojo-attach-point=\"containerNode\"></tbody>\n</table>\n"}}); -define("dijit/DropDownMenu", [ - "dojo/_base/declare", // declare - "dojo/_base/event", // event.stop - "dojo/keys", // keys - "dojo/text!./templates/Menu.html", - "./_OnDijitClickMixin", - "./_MenuBase" -], function(declare, event, keys, template, _OnDijitClickMixin, _MenuBase){ - - // module: - // dijit/DropDownMenu - - return declare("dijit.DropDownMenu", [_MenuBase, _OnDijitClickMixin], { - // summary: - // A menu, without features for context menu (Meaning, drop down menu) - - templateString: template, - - baseClass: "dijitMenu", - - postCreate: function(){ - this.inherited(arguments); - var l = this.isLeftToRight(); - this._openSubMenuKey = l ? keys.RIGHT_ARROW : keys.LEFT_ARROW; - this._closeSubMenuKey = l ? keys.LEFT_ARROW : keys.RIGHT_ARROW; - this.connectKeyNavHandlers([keys.UP_ARROW], [keys.DOWN_ARROW]); - }, - - _onKeyPress: function(/*Event*/ evt){ - // summary: - // Handle keyboard based menu navigation. - // tags: - // protected - - if(evt.ctrlKey || evt.altKey){ return; } - - switch(evt.charOrCode){ - case this._openSubMenuKey: - this._moveToPopup(evt); - event.stop(evt); - break; - case this._closeSubMenuKey: - if(this.parentMenu){ - if(this.parentMenu._isMenuBar){ - this.parentMenu.focusPrev(); - }else{ - this.onCancel(false); - } - }else{ - event.stop(evt); - } - break; - } - } - }); -}); |