Move VoiceOver Focus on Mac
Move VoiceOver Focus on Mac
- Subject: Move VoiceOver Focus on Mac
- From: Charlie Powell <email@hidden>
- Date: Mon, 02 May 2016 05:37:31 +0000
- Thread-topic: Move VoiceOver Focus on Mac
I’m looking for a way to programmatically move the VO focus when certain things happen in my app. For example, the user might invoke a keyboard shortcut to show some new UI in the same window and I want VO to immediately move there so that the user isn’t required to find it themselves. It’s somewhat similar to showing the list of mailboxes in Mail.app (though in that case VO doesn’t seem to actually move to the list).
I came across the following thread from a couple years ago on this list asking basically the same question, seemingly using a combination of moving first responder and/or posting NSAccessibilityLayoutChangedNotification: http://lists.apple.com/archives/accessibility-dev/2014/Apr/msg00030.html
Is it still the case that there’s no reliable way to accomplish this? Moving first responder generally works, but (as mentioned in that previous thread) it doesn’t if the user disables the preference for VO to follow keyboard focus. And firing the NSAccessibilityLayoutChangedNotification doesn’t seem to work at all in a sample app I’m trying. I’m aware of the VO+J shortcut that seems to just cycle through the list of elements set for the accessibilityLinkedUIElements property, but that doesn’t help when I want to move VO to an element (in the same window) because of some user action.
One interesting scenario I looked at on Mac was calendar notifications. I noticed that if I have VO enabled and I’m typing along in TextEdit, when a calendar notification shows up that the VO focus moves to the image in the notification (though TextEdit keeps first responder and VO continues reading content I type into it). This is basically the behavior we want, but not sure how feasible it is (the system inherently knows about these notifications and might have special logic to handle them, they’re technically not part of the same window/app that currently has focus, etc).
Any thoughts/help are greatly appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden