summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-10-23 19:24:37 +0000
committerFelipe Heidrich <fheidric>2009-10-23 19:24:37 +0000
commitad2f7a3dbde5efa498f9080cce5bfb2b90785d8d (patch)
tree6baed7dd3b1ae29e499725e4a72f49a33c203c09 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
parent548533ad759a88444affd19fae3ef362d7331f8b (diff)
downloadeclipse.platform.swt-ad2f7a3dbde5efa498f9080cce5bfb2b90785d8d.tar.gz
eclipse.platform.swt-ad2f7a3dbde5efa498f9080cce5bfb2b90785d8d.tar.xz
eclipse.platform.swt-ad2f7a3dbde5efa498f9080cce5bfb2b90785d8d.zip
Bug 65679 - SelectionEvent.stateMask remains 0 even Ctrl (Shift, Alt) were pressed during push operation on button
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
index 6d5f14915f..4a0b3cd840 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Link.java
@@ -749,7 +749,7 @@ LRESULT WM_CHAR (int /*long*/ wParam, int /*long*/ lParam) {
case SWT.CR:
Event event = new Event ();
event.text = ids [focusIndex];
- sendEvent (SWT.Selection, event);
+ sendSelectionEvent (SWT.Selection, event, true);
break;
case SWT.TAB:
boolean next = OS.GetKeyState (OS.VK_SHIFT) >= 0;
@@ -906,7 +906,7 @@ LRESULT WM_LBUTTONUP (int /*long*/ wParam, int /*long*/ lParam) {
if (rect.contains (x, y)) {
Event event = new Event ();
event.text = ids [mouseDownIndex];
- sendEvent (SWT.Selection, event);
+ sendSelectionEvent (SWT.Selection, event, true);
break;
}
}
@@ -1056,7 +1056,7 @@ LRESULT wmNotifyChild (NMHDR hdr, int /*long*/ wParam, int /*long*/ lParam) {
OS.MoveMemory (item, lParam, NMLINK.sizeof);
Event event = new Event ();
event.text = ids [item.iLink];
- sendEvent (SWT.Selection, event);
+ sendSelectionEvent (SWT.Selection, event, true);
break;
}
}