Skip to content

Commit

Permalink
JBR-5289 If the label has the role of a hyperlink, VO still pronounce…
Browse files Browse the repository at this point in the history
…s it as plain text (#215)
  • Loading branch information
savoptik authored and jbrbot committed Mar 10, 2023
1 parent cf958ce commit f2c16db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ void initializeRoles()
[sRoles setObject:JavaAccessibilityIgnore forKey:@"frame"];
[sRoles setObject:JavaAccessibilityIgnore forKey:@"glasspane"];
[sRoles setObject:NSAccessibilityGroupRole forKey:@"groupbox"];
[sRoles setObject:NSAccessibilityStaticTextRole forKey:@"hyperlink"]; //maybe a group?
[sRoles setObject:NSAccessibilityLinkRole forKey:@"hyperlink"];
[sRoles setObject:NSAccessibilityImageRole forKey:@"icon"];
[sRoles setObject:NSAccessibilityGroupRole forKey:@"internalframe"];
[sRoles setObject:NSAccessibilityStaticTextRole forKey:@"label"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ @implementation StaticTextAccessibility

- (NSAccessibilityRole _Nonnull)accessibilityRole
{
if ([fJavaRole isEqualToString:@"hyperlink"]) {
return NSAccessibilityLinkRole;
}
return NSAccessibilityStaticTextRole;
}

Expand Down

0 comments on commit f2c16db

Please sign in to comment.