[orca/gnome-3-14] If a Gecko entry lacks a label and name, fall back on the autocomplete's
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-14] If a Gecko entry lacks a label and name, fall back on the autocomplete's
- Date: Fri, 12 Sep 2014 19:06:03 +0000 (UTC)
commit f5329cd86bf6e9c5d61dfb3e1c31df514b1fe72b
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Fri Sep 12 15:04:56 2014 -0400
If a Gecko entry lacks a label and name, fall back on the autocomplete's
.../scripts/toolkits/Gecko/speech_generator.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/speech_generator.py
b/src/orca/scripts/toolkits/Gecko/speech_generator.py
index 66530f0..c465a14 100644
--- a/src/orca/scripts/toolkits/Gecko/speech_generator.py
+++ b/src/orca/scripts/toolkits/Gecko/speech_generator.py
@@ -202,9 +202,14 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
if self._script.utilities.isTextBlockElement(obj):
return []
- return speech_generator.SpeechGenerator._generateLabelOrName(
+ result = speech_generator.SpeechGenerator._generateLabelOrName(
self, obj, **args)
+ if not result and obj.parent.getRole() == pyatspi.ROLE_AUTOCOMPLETE:
+ result = self._generateLabelOrName(obj.parent, **args)
+
+ return result
+
def _generateRoleName(self, obj, **args):
"""Prevents some roles from being spoken."""
result = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]