Community
Participate
Working Groups
- run the ControlExample, Button tab - turn on listeners MouseUp and Selection - click on an example Button -> on OSX you'll get Selection - MouseUp -> everywhere else you'll get MouseUp - Selection
SSQ and SN to investigate. NOTE that it is undefined whether selection comes on mouse up or mouse down but it's easy to see that in this case, on every platform, selection is not issued unless the mouse is released inside the bounds of the button.
SWT.Selection is posted from kEventControlHit. SWT.MouseUp is posted from kEventMouseDown. Selection is posted before MouseUp and therefore appears first.
Changed Button to send the mouseUp rather than post. Looking at Tree and ToolItem which have the same pattern.
Changed ToolItem to send the MouseUp. Leaving Tree as a post because selection happens on MouseDown. Fixed in 3.1 HEAD > Nov 24.
reopening to assign to myself before closing.
fixed as described in comments 3 and 4.