[orca] Include document frame name when generating new ancestors
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Include document frame name when generating new ancestors
- Date: Thu, 22 Dec 2016 11:15:22 +0000 (UTC)
commit 9e35fa1a7e513103aabf0a32734261d20ba0f0d3
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Dec 22 06:14:08 2016 -0500
Include document frame name when generating new ancestors
src/orca/scripts/web/speech_generator.py | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 38916c1..b29971a 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -72,7 +72,15 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
pyatspi.ROLE_LIST_ITEM,
pyatspi.ROLE_TEXT]
- return super()._generateAncestors(obj, **args)
+ result = super()._generateAncestors(obj, **args)
+ priorObj = args.get('priorObj')
+ if priorObj and self._script.utilities.inDocumentContent(priorObj):
+ priorDoc = self._script.utilities.getDocumentForObject(priorObj)
+ doc = self._script.utilities.getDocumentForObject(obj)
+ if priorDoc != doc:
+ result.insert(0, super()._generateName(doc))
+
+ return result
def _generateAllTextSelection(self, obj, **args):
if self._script.utilities.isZombie(obj) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]