[orca] Treat ROLE_TREE as a table if it implements the table interface
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Treat ROLE_TREE as a table if it implements the table interface
- Date: Wed, 5 Feb 2020 22:25:39 +0000 (UTC)
commit 0bb111c3a867cbb59a7d2fe910c4e6974ef23e48
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 5 17:24:06 2020 -0500
Treat ROLE_TREE as a table if it implements the table interface
src/orca/script_utilities.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index f30bbb8ed..5122b3fd9 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1221,8 +1221,8 @@ class Utilities:
if not obj:
return None
- tableRoles = [pyatspi.ROLE_TABLE, pyatspi.ROLE_TREE_TABLE]
- isTable = lambda x: x and x.getRole() in tableRoles
+ tableRoles = [pyatspi.ROLE_TABLE, pyatspi.ROLE_TREE_TABLE, pyatspi.ROLE_TREE]
+ isTable = lambda x: x and x.getRole() in tableRoles and "Table" in pyatspi.listInterfaces(x)
if isTable(obj):
return obj
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]