[orca] Don't treat an empty table as layout only if the user gives it focus



commit d8992faf44bdfcea7e06aa4deffa3137d7fa28e7
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Dec 22 09:22:14 2016 -0500

    Don't treat an empty table as layout only if the user gives it focus

 src/orca/script_utilities.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 3816e22..f7c8cad 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1168,7 +1168,7 @@ class Utilities:
                 layoutOnly = True
             else:
                 if not (table.nRows and table.nColumns):
-                    layoutOnly = True
+                    layoutOnly = not obj.getState().contains(pyatspi.STATE_FOCUSED)
                 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]