Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#17664 closed enhancement (fixed)

[dojox.widgets.Selection] Multiple selection modifier is colliding with context menu on a Mac

Reported by: dg Owned by: cjolif
Priority: undecided Milestone: 1.11
Component: DojoX Widgets Version: 1.9.2
Keywords: Cc:
Blocked By: Blocking:

Description

On a Mac, as mouse may have only one button, the control key + mouse click is showing the context menu. As a matter of fact, it triggers the "oncontextmenu" event on a DOM element (on Safari at least).

In dojox.widgets.Selection, if the selectionMode is set to "multiple", the selectFromEvent function is using the MouseEvent?.ctrlKey modifier to allow multiple selection. Unfortunately this MouseEvent?.ctrlKey is the control key as well on a Mac (and not the command as one could have expected).

So a solution should be found for this particular use case. It could be using a different modifier (only for Mac or not), using the command key instead (but it's not a modifier, see http://unixpapa.com/js/key.html)

Change History (4)

comment:1 Changed 5 years ago by cjolif

Owner: set to cjolif
Status: newassigned

comment:2 Changed 5 years ago by cjolif

Milestone: tbd2.0
Resolution: fixed
Status: assignedclosed

this has been fixed part of the 2.0/delite work. See: https://github.com/ibm-js/delite/issues/77

comment:3 Changed 4 years ago by Bill Keese <bill@…>

In f3ac2a540af3a0f96c56d2073a03a71056b79fc1/dojox:

Error: Processor CommitTicketReference failed
Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? 

comment:4 Changed 4 years ago by bill

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