[orca] Treat toggle buttons as leaf nodes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat toggle buttons as leaf nodes
- Date: Mon, 28 Oct 2019 19:45:37 +0000 (UTC)
commit 7b031f3ec2068c06b3457886b9015db192b849c4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Oct 28 15:44:36 2019 -0400
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).
src/orca/script_utilities.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 260de4a7c..b2710ada2 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]