Skip to content
Permalink
Browse files
7124293: [macosx] VoiceOver reads percentages rather than the actual …
…values for sliders.

Backport-of: 6168452
  • Loading branch information
TheRealMDoerr committed May 20, 2022
1 parent ab5b6a9 commit 7265ae53b217e79ac8282f9c36efd226e11e7cba
Showing 1 changed file with 2 additions and 1 deletion.
@@ -512,8 +512,9 @@ - (NSArray *)initializeAttributeNamesWithEnv:(JNIEnv *)env
}

// if it's a pagetab / radiobutton, it has a value but no min/max value.
// if it is a slider, supplying only the value makes it to voice out the value instead of percentages
BOOL hasAxValue = attributeStatesArray[2];
if ([javaRole isEqualToString:@"pagetab"] || [javaRole isEqualToString:@"radiobutton"]) {
if ([javaRole isEqualToString:@"pagetab"] || [javaRole isEqualToString:@"radiobutton"] || [javaRole isEqualToString:@"slider"]) {
[attributeNames addObject:NSAccessibilityValueAttribute];
} else {
// if not a pagetab/radio button, and it has a value, it has a min/max/current value.

1 comment on commit 7265ae5

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 7265ae5 May 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.