diff options
author | Steve Northover <steve> | 2007-02-11 17:16:26 +0000 |
---|---|---|
committer | Steve Northover <steve> | 2007-02-11 17:16:26 +0000 |
commit | 1b2879f31e6285fc359c38793ae922ac29db866d (patch) | |
tree | f5ba13c4f396c81f2b5022d273fe8817230becc3 /bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | |
parent | 161ed0188f1e29761ce3a16e6ce95de89b42cee3 (diff) | |
download | eclipse.platform.swt-1b2879f31e6285fc359c38793ae922ac29db866d.tar.gz eclipse.platform.swt-1b2879f31e6285fc359c38793ae922ac29db866d.tar.xz eclipse.platform.swt-1b2879f31e6285fc359c38793ae922ac29db866d.zip |
118709 - Support Windows mnemonic (and focus) hiding options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java index 2554157171..e47974522b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Composite.java @@ -931,7 +931,19 @@ boolean translateMnemonic (Event event, Control control) { } boolean translateTraversal (MSG msg) { - if ((state & CANVAS) != 0 && (style & SWT.EMBEDDED) != 0) return false; + if ((state & CANVAS) != 0 ) { + if ((style & SWT.EMBEDDED) != 0) return false; + switch (msg.wParam) { + case OS.VK_UP: + case OS.VK_LEFT: + case OS.VK_DOWN: + case OS.VK_RIGHT: + case OS.VK_PRIOR: + case OS.VK_NEXT: + OS.SendMessage (msg.hwnd, OS.WM_UPDATEUISTATE, OS.UIS_INITIALIZE, 0); + break; + } + } return super.translateTraversal (msg); } |