diff options
author | Boris Dušek <me@dusek.me> | 2013-08-02 00:36:54 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-08-04 19:23:13 +0000 |
commit | bf7f9e3d6009424275260d21c4b946d4c963a201 (patch) | |
tree | 411d5543169990f04b4343a170bc305eb77d0cd3 /vcl/aqua | |
parent | 2abadc9a2f681b737f5fb1a2de7983fb65ffde45 (diff) |
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 e9257fa0e642de2f1c79f2c80387334010812dab.
Change-Id: I7f76ebde963cf57879273d9848ff195877759524
Reviewed-on: https://gerrit.libreoffice.org/5239
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/a11y/aqua11yfocuslistener.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx b/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx index ace26169637a..5a0c339af27b 100644 --- a/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx +++ b/vcl/aqua/source/a11y/aqua11yfocuslistener.cxx @@ -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 &) { |