Skip to content

Commit 49f622c

Browse files
author
Alexander Zuev
committed
8208747: [a11y] [macos] In Optionpane Demo, inside ComponentDialog Example, unable to navigate to all items, with VO on
Reviewed-by: pbansal
1 parent 54520fb commit 49f622c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m

+8
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,14 @@ - (BOOL)accessibilityIsIndexAttributeSettable
896896
return NO;
897897
}
898898

899+
- (NSInteger)accessibilityIndex {
900+
int index = 0;
901+
if (fParent != NULL) {
902+
index = [fParent accessibilityIndexOfChild:self];
903+
}
904+
return index;
905+
}
906+
899907
/*
900908
* The java/lang/Number concrete class could be for any of the Java primitive
901909
* numerical types or some other subclass.

0 commit comments

Comments
 (0)