Skip to content

Commit

Permalink
Update platforms/macos/src/node.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Arnold Loubriat <[email protected]>
  • Loading branch information
HolgerGottChristensen and DataTriny authored Nov 1, 2024
1 parent 5a0aa0c commit 1575ce3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions platforms/macos/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,7 @@ fn ns_sub_role(node: &Node) -> &'static NSAccessibilitySubrole {
Role::AlertDialog => ns_string!("AXApplicationAlertDialog"),
Role::Article => ns_string!("AXDocumentArticle"),
Role::Banner => ns_string!("AXLandmarkBanner"),
Role::Button => {
if node.toggled().is_some() {
NSAccessibilityToggleSubrole
} else {
NSAccessibilityUnknownSubrole
}
}
Role::Button if node.toggled().is_some() => NSAccessibilityToggleSubrole,
Role::Code => ns_string!("AXCodeStyleGroup"),
Role::Complementary => ns_string!("AXLandmarkComplementary"),
Role::ContentDeletion => ns_string!("AXDeleteStyleGroup"),
Expand Down

0 comments on commit 1575ce3

Please sign in to comment.