Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#5799 closed enhancement (fixed)

add left click support to menu.

Reported by: tk Owned by: tk
Priority: high Milestone: 1.4
Component: Dijit Version: 1.0
Keywords: Cc: menu left click
Blocked By: Blocking:


Allow attribute to open menus via left click, similiar to file menu operations.

Change History (4)

comment:1 Changed 14 years ago by Karl Tiedt

Resolution: fixed
Status: newclosed

(In [12321]) fixes #5799 adds left click support to dijit.Menu !strict

comment:2 Changed 14 years ago by Karl Tiedt

(In [12323]) refs #5799 adds test case for leftClickToOpen

comment:3 Changed 13 years ago by bill

(In [21019]) Menu fixes and refactor:

  • Code to prevent double menu open on linux/FF due to shift-F10 causing both a keyboard event and an oncontextmenu event.
  • Rework parameters to _openMyself() so it doesn't need the event object (because the event object is no longer valid after the setTimeout fires).
  • Remove code to check that left click was truly the left button, because it didn't have any effect: On IE onclick events always have button=0 regardless of which button is pressed (e.button does vary on mousedown events, but using IE's non-standard encoding for mouse buttons). On Mozilla/webkit, only a left click causes an onclick event. (see #5799).
  • Get rid of this._contextMenuWithMouse by simply only passing coordinates to _openMyself() when there's a mouse position.

Fixes #10267 !strict.

comment:4 Changed 12 years ago by bill

Milestone: 1.4
Note: See TracTickets for help on using tickets.