Community
Participate
Working Groups
So that the popup menu is displayed properly on all platforms, we need to use the MenuDetect listener instead of a MouseListener and testing for button == 3. Please see bug 28658 for more details. Also, see bug 39081 open against SWT - the x and y values of the MouseEvent are relative to the control, but the x & y values of the Event (MenuDetect listener) are relative to the screen. I'm asking SWT to make them relative to the control. The only place I found in the Text component that needs updating is CompositeRulerCanvas (in its constructor, it adds a mouse listener to show a popup menu when button == 3).
*** This bug has been marked as a duplicate of 32688 ***