Changeset 12321
- Timestamp:
- 02/08/08 15:11:15 (5 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/Menu.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/Menu.js
r12184 r12321 30 30 contextMenuForWindow: false, 31 31 32 // leftClickToOpen: Boolean 33 // If true, menu will open on left click instead of right click, similiar to a file menu. 34 leftClickToOpen: false, 35 32 36 // parentMenu: Widget 33 37 // pointer to menu that displayed me … … 181 185 182 186 node[this.id] = this._bindings.push([ 183 dojo.connect(cn, "oncontextmenu", this, "_openMyself"),187 dojo.connect(cn, (this.leftClickToOpen)?"onclick":"oncontextmenu", this, "_openMyself"), 184 188 dojo.connect(cn, "onkeydown", this, "_contextKey"), 185 189 dojo.connect(cn, "onmousedown", this, "_contextMouse") … … 221 225 // does a right-click or something similar 222 226 227 if(this.leftClickToOpen&&e.button>0){ 228 return; 229 } 223 230 dojo.stopEvent(e); 224 231