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



commit 5e7bcfc53e4fdba35643bd943cda44a345e2dfcd
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 a293347..c6542e4 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -3222,6 +3222,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]