mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-3868 Combobox list is not voiced of VoiceOver
This commit is contained in:
@@ -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 ||
|
||||
|
||||
@@ -59,4 +59,9 @@ static jmethodID sjm_getAccessibleName = NULL;
|
||||
return [[self accessibleSelection] accessibilityLabel];
|
||||
}
|
||||
|
||||
- (NSArray *)accessibilitySelectedChildren
|
||||
{
|
||||
return [NSArray arrayWithObject:[self accessibleSelection]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user