[orca] Infer labels for non-focused Gecko listboxes



commit 40e2cec6a7a58cc1025b5c947c6867325cd7d9d6
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Aug 5 11:28:47 2014 -0400

    Infer labels for non-focused Gecko listboxes

 .../scripts/toolkits/Gecko/speech_generator.py     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py 
b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index 6b0c62c..6e07d0e 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -155,7 +155,7 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
 
             # We're having to hack around yet another Mozilla bug:
             # https://bugzilla.mozilla.org/show_bug.cgi?id=960241
-            focusedOnly = role != pyatspi.ROLE_LIST
+            focusedOnly = role not in [pyatspi.ROLE_LIST, pyatspi.ROLE_LIST_BOX]
 
             label = self._script.labelInference.infer(obj, focusedOnly)
             if label:


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