[dojox.widgets.Selection] Multiple selection modifier is colliding with context menu on a Mac
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)
Owner: |
set to cjolif
|
Status: |
new →
assigned
|
Milestone: |
tbd →
2.0
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
this has been fixed part of the 2.0/delite work. See: https://github.com/ibm-js/delite/issues/77