[orca/gnome-3-36] If a suggestion has details, present them after the suggestion-end message
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-36] If a suggestion has details, present them after the suggestion-end message
- Date: Thu, 27 Feb 2020 17:47:45 +0000 (UTC)
commit e072540bcdfddb6f05ced9c0ca48d5bcda26e7c4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 27 18:45:45 2020 +0100
If a suggestion has details, present them after the suggestion-end message
src/orca/speech_generator.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 4474b2307..092dc7862 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -352,6 +352,11 @@ class SpeechGenerator(generator.Generator):
result.extend([messages.CONTENT_SUGGESTION_END])
result.extend(self.voice(SYSTEM))
+ container = pyatspi.findAncestor(obj, self._script.utilities.hasDetails)
+ if self._script.utilities.isContentSuggestion(container):
+ result.extend(self._generatePause(obj, **args))
+ result.extend(self._generateHasDetails(container, mode=args.get('mode')))
+
return result
def _generateInsertionStart(self, obj, **args):
@@ -390,6 +395,11 @@ class SpeechGenerator(generator.Generator):
result.extend([messages.CONTENT_SUGGESTION_END])
result.extend(self.voice(SYSTEM))
+ container = pyatspi.findAncestor(obj, self._script.utilities.hasDetails)
+ if self._script.utilities.isContentSuggestion(container):
+ result.extend(self._generatePause(obj, **args))
+ result.extend(self._generateHasDetails(container, mode=args.get('mode')))
+
return result
def _generateMarkStart(self, obj, **args):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]