Commit 7b031f3e authored by Joanmarie Diggs's avatar Joanmarie Diggs

Treat toggle buttons as leaf nodes

We do this for push buttons. And some user agents expose useless children
of toggle buttons (just like they do for push buttons).
parent e159ca5f
......@@ -4137,7 +4137,8 @@ class Utilities:
return not state.contains(pyatspi.STATE_EXPANDED)
roles = [pyatspi.ROLE_COMBO_BOX,
pyatspi.ROLE_PUSH_BUTTON]
pyatspi.ROLE_PUSH_BUTTON,
pyatspi.ROLE_TOGGLE_BUTTON]
return role in roles
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment