[orca] Never treat layout-only-table cells as focus-mode widgets



commit 610d3f2fe0c46e20908c26f9e64a54ccc832596c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Jul 23 19:40:34 2019 -0400

    Never treat layout-only-table cells as focus-mode widgets

 src/orca/scripts/web/script_utilities.py | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index f0ced1a51..7c61f7e8b 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -1816,6 +1816,10 @@ class Utilities(script_utilities.Utilities):
         if role in alwaysFocusModeRoles:
             return True
 
+        if role in [pyatspi.ROLE_TABLE_CELL, pyatspi.ROLE_TABLE] \
+           and self.isLayoutOnly(self.getTable(obj)):
+            return False
+
         focusModeRoles = [pyatspi.ROLE_EMBEDDED,
                           pyatspi.ROLE_LIST_ITEM,
                           pyatspi.ROLE_TABLE_CELL,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]