[orca] Ensure we have a non-layout-table cell when using table navigation



commit 180bfa02cc141c06b0eb8505bcc1e4b6eadefeef
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Apr 5 17:17:42 2019 -0400

    Ensure we have a non-layout-table cell when using table navigation

 src/orca/structural_navigation.py | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index 9f143f615..274a5a98f 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1062,6 +1062,12 @@ class StructuralNavigation:
         if obj and not isCell(obj):
             obj = pyatspi.utils.findAncestor(obj, isCell)
 
+        while obj and self._script.utilities.isLayoutOnly(self.getTableForCell(obj)):
+            cell = pyatspi.utils.findAncestor(obj, isCell)
+            if not cell:
+                break
+            obj = cell
+
         return obj
 
     def _isContainer(self, obj):


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