JBR-3868 Combobox list is not voiced of VoiceOver

This commit is contained in:
Artem Semenov
2021-11-17 15:29:50 +03:00
committed by jbrbot
parent 506fbcf875
commit ad6a7e9b20
2 changed files with 13 additions and 4 deletions

View File

@@ -164,12 +164,16 @@ class CAccessible extends CFRetainedResource implements Accessible {
treeNodeCollapsed(ptr);
}
if (thisRole == AccessibleRole.COMBO_BOX) {
selectionChanged(ptr);
}
if (thisRole == AccessibleRole.POPUP_MENU) {
if ( newValue != null &&
((AccessibleState)newValue) == AccessibleState.VISIBLE ) {
if (newValue != null &&
((AccessibleState) newValue) == AccessibleState.VISIBLE) {
menuOpened(ptr);
} else if ( oldValue != null &&
((AccessibleState)oldValue) == AccessibleState.VISIBLE ) {
} else if (oldValue != null &&
((AccessibleState) oldValue) == AccessibleState.VISIBLE) {
menuClosed(ptr);
}
} else if (thisRole == AccessibleRole.MENU_ITEM ||

View File

@@ -59,4 +59,9 @@ static jmethodID sjm_getAccessibleName = NULL;
return [[self accessibleSelection] accessibilityLabel];
}
- (NSArray *)accessibilitySelectedChildren
{
return [NSArray arrayWithObject:[self accessibleSelection]];
}
@end