diff options
author | Steve Northover <steve> | 2004-12-16 16:25:04 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2004-12-16 16:25:04 +0000 |
commit | 0bfbeddafb0020a9d7cf21b8937bcdc6d4146a7d (patch) | |
tree | ba47031ea0b98847f326648e1fe4e7fd6ee89eea /bundles | |
parent | 774ce67f608b38f16a02a163ef9afe74b9bc4cc0 (diff) | |
download | eclipse.platform.swt-0bfbeddafb0020a9d7cf21b8937bcdc6d4146a7d.tar.gz eclipse.platform.swt-0bfbeddafb0020a9d7cf21b8937bcdc6d4146a7d.tar.xz eclipse.platform.swt-0bfbeddafb0020a9d7cf21b8937bcdc6d4146a7d.zip |
79216
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java index 6323ca0088..6ee8572cf7 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Widget.java @@ -1653,17 +1653,17 @@ LRESULT wmLButtonDown (int hwnd, int wParam, int lParam) { * the ESC key is pressed, these events are consumed by * DragDetect() so that application code that matches * mouse down/up pairs or looks for the ESC key will not - * function properly. The fix is to send these events - * when the drag has not started. + * function properly. The fix is to post the missing + * events when the drag has not started. * - * NOTE: For now, don't send a fake WM_KEYDOWN/WM_KEYUP + * NOTE: For now, don't post a fake WM_KEYDOWN/WM_KEYUP * events for the ESC key. This would require computing * wParam (the key) and lParam (the repeat count, scan code, * extended-key flag, context code, previous key-state flag, * and transition-state flag) which is non-trivial. */ if (OS.GetKeyState (OS.VK_ESCAPE) >= 0) { - OS.SendMessage (hwnd, OS.WM_LBUTTONUP, wParam, lParam); + OS.PostMessage (hwnd, OS.WM_LBUTTONUP, wParam, lParam); } } } |