<Swing Dev> RfR JDK-8145207 [macosx] JList, VO can't access non-visible list items

Anton Tarasov anton.tarasov at jetbrains.com
Wed Jun 22 09:28:34 UTC 2016


Hi Pete,

I went through the fix and found it looking fine to me, except for these two minor issues:

- JavaComponentAccessibility.m

In this chunk:

+- (void)postSelectionChanged
+{
+    NSAccessibilityPostNotification(self, NSAccessibilitySelectedChildrenChangedNotification);
+}

AWT_ASSERT_APPKIT_THREAD is missing.

- CAccessibility.java

A typo in the comment: "will will annouce” 

Also, I gave it a try with jdk8u-dev, locally, along with the following pre-applied:

8076554: [macosx] Custom Swing text components need to allow standard accessibility

JList is spoken fine by VO, though I wasn’t able to make the following:


> On 18 Jun 2016, at 05:31, Pete Brunet <peter.brunet at oracle.com> wrote:
> 
> Please review the following patch.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8145207
> Patch: http://cr.openjdk.java.net/~ptbrunet/JDK-8145207/webrev.00/
> 
> This fixes the following functionality that was not working with the
> JList of ListDemo of SwingSet2.
> - start VoiceOver
> - start SwingSet2
> - start the ListDemo
> - press Tab until focus is on the list, should hear VO when changing
> selections with up/down arrow
> - when interacting with list should hear that there are 30 (total)
> items, not 26 (visible) items
> - when using control+option+up/downarrow should be able to move to and
> select (control+option+spacebar) non-visible items past the 26th visible
> item

VO+up/down just moves up/down the sibling panels (conforming https://www.apple.com/voiceover/info/guide/_1131.html <https://www.apple.com/voiceover/info/guide/_1131.html>) but not the list items.
Could you please shed a light on it?

Thanks,
Anton.

P.S.
Will it be possible to back-port it to 8u-dev?


> - should be able to multi-select both visible and invisible items using
> control+option+command+return and VO should read the item just added
> - should be able to shift extend items with shift up or shift down arrow
> and VO should announce the item just added or removed
> 
> Pete
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20160622/1e995615/attachment.html>


More information about the swing-dev mailing list