[orca] Fall back on child text for list elements in the structural navigation dialog



commit 43519e4296fa136f1ffcdcb8b095bc16865641fc
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Jun 4 11:57:48 2015 -0400

    Fall back on child text for list elements in the structural navigation dialog

 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 4584428..a9e79f3 100644
--- a/src/orca/structural_navigation.py
+++ b/src/orca/structural_navigation.py
@@ -1710,6 +1710,9 @@ class StructuralNavigation:
                 text = image.imageDescription or obj.description
             if not text and obj.parent.getRole() == pyatspi.ROLE_LINK:
                 text = self._script.utilities.linkBasename(obj.parent)
+        if not text and obj.getRole() == pyatspi.ROLE_LIST:
+            children = [x for x in obj if x.getRole() == pyatspi.ROLE_LIST_ITEM]
+            text = " ".join(list(map(self._getText, children)))
 
         return text
 


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