Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[email protected]

git-svn-id: http://windowtester.googlecode.com/svn/trunk@14 dfedb853-a37c-be70-40fe-a5a6558f63ed
  • Loading branch information
[email protected] committed Jul 11, 2012
1 parent cc4b75d commit 5081c77
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ private UISemanticEvent handleDispose(Event event, Widget widget) {



private boolean lastEventWasAClickOnThisWidget(Widget widget) {
private boolean lastEventWasAClickOnThisWidget(Widget widget) {
if (_lastMouseEvent == null)
return false;
boolean isMouseEvent = (_lastMouseEvent.type == SWT.MouseDown || _lastMouseEvent.type == SWT.MouseUp);
boolean isWidget = (widget == _lastMouseEvent.widget || widget == _lastMouseEvent.item || widget == _lastMouseEventDetail);
return isMouseEvent && isWidget;
Expand Down

0 comments on commit 5081c77

Please sign in to comment.