Re: Make a text view/table view pair accessible
Re: Make a text view/table view pair accessible
- Subject: Re: Make a text view/table view pair accessible
- From: Boris Dušek <email@hidden>
- Date: Mon, 07 Jul 2014 00:04:26 +0200
Hi Josh and Nick,
On Dec 4, 2013, at 3:10 PM, Nick Kocharhook <email@hidden> wrote:
> I have an NSTextView subclass which is tied to an NSTableView. They are tied together and look like this:
It seems that the answer is NSAccessibilitySharedFocusElementsAttribute available in 10.10 DP2. Thanks for making that API and making it public, the latest pre-release of TextMate 2 (alpha 9549, available at https://github.com/textmate/textmate/releases) already uses it in its File and Symbol chooser for better experience on 10.10.
I hope it will solve Nick’s usecase as well.
One thing I noticed that NSAccessibilitySharedFocusElementsAttribute is really about changing focus (as the name clearly suggests), not value. So when I added an NSTextField (more precisely its cell) containing the total result count to the NSAccessibilitySharedFocusElementsAttribute array, VoiceOver did not inform the user how many results are there currently in the table (i.e. inform the user of changes of AXValue of the AXStaticText containing the information about current result count). I would like to make a user experience similar to "Example 3: Combo Box with a “Status” Live Region” in James Craig’s recent WebKit blog post: https://www.webkit.org/blog/3302/aria_and_accessibility_inspector/ where he demonstrates a text field with suggestions menu and result count text, and the result count is spoken by VoiceOver. The only way I can think of now is to post an AXAnnouncementRequested for the number of results, and for better experience delay it for e.g. 2 seconds (so that it does not clash with neither the typing feedback nor the “completion selected” announcement), and don’t post it if within those 2 seconds we need to post another such announcement. Only other way I can think of is to try mimic the accessibility hierarchy in James’ example, i.e. AXGroup:AXApplicationStatus, AXAriaLive, AXAriaRelevant, but doubt these will have an effect at all outside of an AXWebArea.
Thanks,
Boris
_______________________________________________
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