[orca/gnome-3-12] Generate ancestors for new dialogs even if there is no prior focused object



commit 9d3909c893cae6629118af9d0f977d94c222e4ce
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Mar 11 09:55:17 2014 -0400

    Generate ancestors for new dialogs even if there is no prior focused object

 src/orca/speech_generator.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index aefb853..d4efd3c 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1523,7 +1523,9 @@ class SpeechGenerator(generator.Generator):
         with focus.
         """
         result = []
-        if args.get('priorObj', None):
+        topLevelObj = self._script.utilities.topLevelObject(obj)
+        if args.get('priorObj') \
+           or (topLevelObj and topLevelObj.getRole() == pyatspi.ROLE_DIALOG):
             result = self._generateAncestors(obj, **args)
         return result
 


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