[orca] Don't treat tables with an author-provided table role as layout only



commit b7114d690e0308e614c4131cddf7db0018eb2b9e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri May 25 16:01:17 2018 -0700

    Don't treat tables with an author-provided table role as layout only

 src/orca/script_utilities.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 9c9067eb6..d0fbd3947 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1376,6 +1376,8 @@ class Utilities:
             else:
                 if not (table.nRows and table.nColumns):
                     layoutOnly = not obj.getState().contains(pyatspi.STATE_FOCUSED)
+                elif attrs.get('xml-roles') == 'table':
+                    layoutOnly = False
                 elif not (obj.name or self.displayedLabel(obj)):
                     layoutOnly = not (table.getColumnHeader(0) or table.getRowHeader(0))
         elif role == pyatspi.ROLE_TABLE_CELL and obj.childCount:


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