# HG changeset patch # User sveerabhadra # Date 1541076205 -19800 # Node ID 356e75119d31708911495202ae6803b58376f6e2 # Parent 7d99b410be1bfaf77eb69fc0b1841c076e7ccca9 7124293: [macosx] VoiceOver reads percentages rather than the actual values for sliders. Reviewed-by: serb, kaddepalli diff -r 7d99b410be1b -r 356e75119d31 src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m Wed Oct 31 16:58:37 2018 -0700 +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/JavaComponentAccessibility.m Thu Nov 01 18:13:25 2018 +0530 @@ -465,8 +465,9 @@ } // 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.