diff options
author | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2011-10-18 15:22:48 -0400 |
---|---|---|
committer | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2011-10-18 15:40:27 -0400 |
commit | 7220efeeff3dfb0c07db88687ff4162a44c56c08 (patch) | |
tree | daeb7a9302411d33148ccb8bff82b888d5e111c3 /bundles/org.eclipse.swt/Eclipse SWT/win32/org | |
parent | e1548fc423794d2ecf29d4f9f0affcb6dbd5f5e0 (diff) | |
download | eclipse.platform.swt-7220efeeff3dfb0c07db88687ff4162a44c56c08.tar.gz eclipse.platform.swt-7220efeeff3dfb0c07db88687ff4162a44c56c08.tar.xz eclipse.platform.swt-7220efeeff3dfb0c07db88687ff4162a44c56c08.zip |
Bug 346517 - Add accessible keyboard shortcut to TabFolder and
CTabFolder
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32/org')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java index 2f03875289..f469bcdd25 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabFolder.java @@ -869,6 +869,16 @@ LRESULT WM_GETDLGCODE (int /*long*/ wParam, int /*long*/ lParam) { return new LRESULT (OS.DLGC_BUTTON | OS.DLGC_WANTARROWS); } +LRESULT WM_GETOBJECT (int /*long*/ wParam, int /*long*/ lParam) { + /* + * Ensure that there is an accessible object created for this + * control because support for publishing the keyboard shortcut + * for page switching is implemented in the accessibility package. + */ + if (accessible == null) accessible = new_Accessible (this); + return super.WM_GETOBJECT (wParam, lParam); +} + LRESULT WM_KEYDOWN (int /*long*/ wParam, int /*long*/ lParam) { LRESULT result = super.WM_KEYDOWN (wParam, lParam); if (result != null) return result; |