[orca] Increase minimum word requirement for panel unrelated labels



commit 0fc6af4587cb0e94de81e046b3ca50536c47cab3
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Apr 29 18:20:33 2018 -0400

    Increase minimum word requirement for panel unrelated labels

 src/orca/speech_generator.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 2336b20..050a517 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -449,7 +449,7 @@ class SpeechGenerator(generator.Generator):
 
         minimumWords = 1
         role = args.get('role', obj.getRole())
-        if role == pyatspi.ROLE_DIALOG:
+        if role in [pyatspi.ROLE_DIALOG, pyatspi.ROLE_PANEL]:
             minimumWords = 3
 
         labels = self._script.utilities.unrelatedLabels(obj, visibleOnly, minimumWords)


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