mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4204 provide an option to disable a11y support on macOS
(cherry picked from commitee3c56abdc) (cherry picked from commite2419baf87)
This commit is contained in:
@@ -687,6 +687,10 @@ extern bool isSystemShortcut_NextWindowInApplication(NSUInteger modifiersMask, N
|
||||
|
||||
- (id)getAxData:(JNIEnv*)env
|
||||
{
|
||||
NSString *a11yEnabledProp = [PropertiesUtilities javaSystemPropertyForKey:@"sun.awt.mac.a11y.enabled" withEnv:env];
|
||||
if ([@"false" isCaseInsensitiveLike:a11yEnabledProp]) {
|
||||
return nil;
|
||||
}
|
||||
jobject jcomponent = [self awtComponent:env];
|
||||
id ax = [[[CommonComponentAccessibility alloc] initWithParent:self withEnv:env withAccessible:jcomponent withIndex:-1 withView:self withJavaRole:nil] autorelease];
|
||||
(*env)->DeleteLocalRef(env, jcomponent);
|
||||
|
||||
Reference in New Issue
Block a user