[orca/gnome-3-14] Exclude layout-only/presentational tables in structural navigation
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] Exclude layout-only/presentational tables in structural navigation
- Date: Fri, 28 Nov 2014 00:22:36 +0000 (UTC)
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]