diff options
author | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2011-11-22 11:19:26 -0500 |
---|---|---|
committer | Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> | 2011-11-22 11:19:26 -0500 |
commit | b4900c85b68770c95704598e281f5c46fcfa7d2e (patch) | |
tree | 77d6a82296b1ca0fb802d38825ae53460e67ae6f /bundles/org.eclipse.swt/Eclipse SWT/win32 | |
parent | 29c077e01041056dad942cbea613f5a80cdf7b71 (diff) | |
download | eclipse.platform.swt-b4900c85b68770c95704598e281f5c46fcfa7d2e.tar.gz eclipse.platform.swt-b4900c85b68770c95704598e281f5c46fcfa7d2e.tar.xz eclipse.platform.swt-b4900c85b68770c95704598e281f5c46fcfa7d2e.zip |
Bug 293698 - [Accessibility] Inspect32/JAWS does not display correct
info after closing context/view menu
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java index f73886d0bb..0fbe399faf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Menu.java @@ -260,6 +260,15 @@ void _setVisible (boolean visible) { } else { OS.SendMessage (hwndParent, OS.WM_CANCELMODE, 0, 0); } + /* + * Bug in Windows. After closing a popup menu, the accessibility focus + * is not returned to the focus control. This causes confusion for AT users. + * The fix is to explicitly set the accessibility focus back to the focus control. + */ + int hFocus = OS.GetFocus(); + if (hFocus != 0) { + OS.NotifyWinEvent (OS.EVENT_OBJECT_FOCUS, hFocus, OS.OBJID_CLIENT, 0); + } } /** |