[orca/gnome-3-34] Mouse Review: Don't return early for description of non-focused object



commit f5ba414cf62ec0028f349218bd8d4988fb140179
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Nov 20 08:46:46 2019 -0500

    Mouse Review: Don't return early for description of non-focused object

 src/orca/scripts/web/speech_generator.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index acaa1969a..ce3fa2173 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -133,7 +133,8 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
         if obj != orca_state.locusOfFocus:
             if role in [pyatspi.ROLE_ALERT, pyatspi.ROLE_DIALOG]:
                 return super()._generateDescription(obj, **args)
-            return []
+            if not args.get('inMouseReview'):
+                return []
 
         formatType = args.get('formatType')
         if formatType == 'basicWhereAmI' and self._script.utilities.isLiveRegion(obj):


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