summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2010-12-21 15:13:05 +0000
committerSilenio Quarti <silenio>2010-12-21 15:13:05 +0000
commit54a032a4934cf27228445c67305d1832942ccd3a (patch)
tree27be12ab5ce178fa6da1db38fb4bed7e8819d441 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
parent0f6611592ddada78ae48830554629f537c3212bc (diff)
downloadeclipse.platform.swt-54a032a4934cf27228445c67305d1832942ccd3a.tar.gz
eclipse.platform.swt-54a032a4934cf27228445c67305d1832942ccd3a.tar.xz
eclipse.platform.swt-54a032a4934cf27228445c67305d1832942ccd3a.zip
Bug 283320 - [SWT] Widgets flashing when moving mouse while holding Alt button
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
index 8b57f49fc6..9b16dc9eb3 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -3644,8 +3644,10 @@ boolean translateMnemonic (MSG msg) {
boolean translateTraversal (MSG msg) {
int /*long*/ hwnd = msg.hwnd;
int key = (int)/*64*/msg.wParam;
- if (key == OS.VK_MENU && ((msg.lParam & 0x40000000) == 0)) {
- OS.SendMessage (hwnd, OS.WM_CHANGEUISTATE, OS.UIS_INITIALIZE, 0);
+ if (key == OS.VK_MENU) {
+ if ((msg.lParam & 0x40000000) == 0) {
+ OS.SendMessage (hwnd, OS.WM_CHANGEUISTATE, OS.UIS_INITIALIZE, 0);
+ }
return false;
}
int detail = SWT.TRAVERSE_NONE;