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

Revert "fdo#54320: VoiceOver does not follow keyboard focus"

The code was correct (and docs confusing). The code did not work because
67410 was not fixed at that moment. With 67410 fixed, the code works
as it was originally.

Also in the meantime I discovered a comment in the NSAccessibility.h header
telling that NSAccessibilityPostNotification should be passed the newly focused
element and that the function itself will make sure to post the notification
on the NSApp element instead.

This reverts commit e9257fa0.

Change-Id: I7f76ebde963cf57879273d9848ff195877759524
Reviewed-on: https://gerrit.libreoffice.org/5239Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst 2abadc9a
......@@ -83,7 +83,7 @@ AquaA11yFocusListener::focusedObjectChanged(const Reference< XAccessible >& xAcc
if( xContext.is() )
{
m_focusedObject = [ AquaA11yFactory wrapperForAccessibleContext: xContext ];
NSAccessibilityPostNotification(NSApp, NSAccessibilityFocusedUIElementChangedNotification);
NSAccessibilityPostNotification(m_focusedObject, NSAccessibilityFocusedUIElementChangedNotification);
}
}
} 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