Kaydet (Commit) e9257fa0 authored tarafından Boris Dušek's avatar Boris Dušek Kaydeden (comit) Norbert Thiebaud

fdo#54320: VoiceOver does not follow keyboard focus

The AXFocusedUIElementChanged notification must have the application object
as its parameter, as it is the application object whose AXFocusedUIElement
attribute value is changing (and because the docs say so).

Change-Id: Ife63a1e59d8a24256ace38fb98b69fd1544f9c96
Reviewed-on: https://gerrit.libreoffice.org/5155Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 0ec4caed
...@@ -83,7 +83,7 @@ AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAcc ...@@ -83,7 +83,7 @@ AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAcc
if( xContext.is() ) if( xContext.is() )
{ {
m_focusedObject = [ AquaA11yFactory wrapperForAccessibleContext: xContext ]; m_focusedObject = [ AquaA11yFactory wrapperForAccessibleContext: xContext ];
NSAccessibilityPostNotification(m_focusedObject, NSAccessibilityFocusedUIElementChangedNotification); NSAccessibilityPostNotification(NSApp, NSAccessibilityFocusedUIElementChangedNotification);
} }
} }
} catch(const RuntimeException &) { } catch(const RuntimeException &) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment