Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7124293: [macosx] VoiceOver reads percentages rather than the actual values for sliders. #1098

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -496,8 +496,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.