[orca] Exclude layout-only/presentational tables in structural navigation



commit 507c4a19680132ffb7c659726894bb0a0195a1c3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Nov 27 19:20:06 2014 -0500

    Exclude layout-only/presentational tables in structural navigation
    
    Aside from the fact that they're arguably not "real" tables, the
    accessible hierarchy may be broken.

 src/orca/structural_navigation.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/structural_navigation.py b/src/orca/structural_navigation.py
index c061f57..52a4e2e 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -3231,6 +3231,9 @@ class StructuralNavigation:
           the criteria (e.g. the level of a heading).
         """
 
+        if self._script.utilities.isLayoutOnly(obj):
+            return False
+
         if obj and obj.childCount and obj.getRole() == pyatspi.ROLE_TABLE:
             try:
                 return obj.queryTable().nRows > 0


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