Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320508 - [Menu] Contextmenu doesn't opoen when clicked on subwidget
Summary: [Menu] Contextmenu doesn't opoen when clicked on subwidget
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 09:46 EDT by Tim Buschtoens CLA
Modified: 2010-12-02 09:38 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Buschtoens CLA 2010-07-21 09:46:27 EDT
E.g. when clicking on a TreeRow the Tree contextmenu doesn't open.
Comment 1 Tim Buschtoens CLA 2010-07-21 09:52:33 EDT
Fixed in CVS HEAD in Menu.js
Comment 2 Istvan Ballok CLA 2010-12-02 09:38:39 EST
This fix is also relevant for the Table widget in RAP 1.3.
Otherwise, the context menu in Safari is not displayed. (after the first time)

Explanation
===========
The problem here is, that Safari simulates the "Mac" behaviour 
for the mouse event of the "oncontextmenu" listener: the ctrlKey is true, 
although no modifier key was pressed.

Because of this, the Table.js#_onRowContextMenu does not show
the context menu. (_isNoModifierPressed check)

In Menu.js, the context menu is shown without the modifier key check.
However, the event happens on the TableRow, and the ContextMenu is 
on the Table.
-> it is important to use the current target when this event bubbles up
the widget composition tree.

=> this is exactly what this fix does.