Re: VO doesn't speak selection changes in a popup list
Re: VO doesn't speak selection changes in a popup list
- Subject: Re: VO doesn't speak selection changes in a popup list
- From: Patti Hoa <email@hidden>
- Date: Mon, 08 Aug 2016 11:31:09 -0700
Hi Peter,
The first obvious problem is that “AXPopupMenu” is not one of the accepted AXRole in macOS. So VoiceOver will not be able to see/understand this element.
If you look at a generic NSPopupButton menu accessibility hierarchy, it is more like this:
AXWindow
AXPopupButton
AXMenu
AXMenuItem (one)
AXMenuItem (two)
And of course you need to send off menu notifications when appropriate: kAXMenuOpenedNotification, kAXMenuClosedNotification, kAXMenuItemSelectedNotification
> On Aug 3, 2016, at 9:23 PM, Pete Brunet <email@hidden> wrote:
>
> I'm trying to get VO to speak selection changes in a popup list and am
> not having any luck so am looking for some ideas.
>
> According to Accessibility Inspector the tree looks like this:
> AXApplication
> AXWindow:AXSystemDialog
> AXPopupMenu
> AXList
> AXStaticTest
>
> This is generated from a Java JList attached to a JPopupMenu which is
> shown when a JButton is activated. The list has 5 items, "one" ... "five".
>
> When the list appears VO does announce it: "system dialog, interact with
> popup button, 5 items, one". But when pressing up/down arrow VO doesn't
> announce the selection changes.
>
> Looking at the VO calls that come back in after a posting a
> NSAccessibilitySelectedChildrenChangedNotification for the list I only see
> - role called once on list, returns list
> - enabled called on label, only when moving from one to two, returns true
> - isIgnored called once on list, returns 0
>
> accessibilityAttributeNames for the list are:
> AXParent,
> AXRole,
> AXRoleDescription,
> AXHelp,
> AXWindow,
> AXTopLevelUIElement,
> AXEnabled,
> AXSize,
> AXPosition,
> AXFocused,
> AXChildren,
> AXSelectedChildren,
> AXVisibleChildren
>
> accessibilityAttributeNames for the labels are:
> AXParent,
> AXRole,
> AXRoleDescription,
> AXHelp,
> AXWindow,
> AXTopLevelUIElement,
> AXEnabled,
> AXSize,
> AXPosition,
> AXFocused,
> AXTitle,
> AXValue,
> AXSelectedText,
> AXSelectedTextRange,
> AXNumberOfCharacters,
> AXVisibleCharacterRange,
> AXInsertionPointLineNumber,
> AXSelected,
> AXIndex
>
> I tried posting a NSAccessibilityLayoutChangedNotification on the list
> (with list in the userInfo dictionary) after the list became visible
> with no luck.
> _______________________________________________
> 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
_______________________________________________
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