/usr/share/javascript/dijit/DropDownMenu.js is in libjs-dojo-dijit 1.10.2+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | require({cache:{
'url:dijit/templates/Menu.html':"<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\"\n\t cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" data-dojo-attach-point=\"containerNode\"></tbody>\n</table>\n"}});
define("dijit/DropDownMenu", [
"dojo/_base/declare", // declare
"dojo/keys", // keys
"dojo/text!./templates/Menu.html",
"./_MenuBase"
], function(declare, keys, template, _MenuBase){
// module:
// dijit/DropDownMenu
return declare("dijit.DropDownMenu", _MenuBase, {
// summary:
// A menu, without features for context menu (Meaning, drop down menu)
templateString: template,
baseClass: "dijitMenu",
// Arrow key navigation
_onUpArrow: function(){
this.focusPrev();
},
_onDownArrow: function(){
this.focusNext();
},
_onRightArrow: function(/*Event*/ evt){
this._moveToPopup(evt);
evt.stopPropagation();
evt.preventDefault();
},
_onLeftArrow: function(/*Event*/ evt){
if(this.parentMenu){
if(this.parentMenu._isMenuBar){
this.parentMenu.focusPrev();
}else{
this.onCancel(false);
}
}else{
evt.stopPropagation();
evt.preventDefault();
}
}
});
});
|