[orca] Take ancestors into account when presenting details during whereAmI
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Take ancestors into account when presenting details during whereAmI
- Date: Thu, 27 Feb 2020 17:18:47 +0000 (UTC)
commit 8c224a6ee60ee920dff6e53da88f2f33b79116ed
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Feb 27 18:18:01 2020 +0100
Take ancestors into account when presenting details during whereAmI
src/orca/scripts/web/speech_generator.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/orca/scripts/web/speech_generator.py b/src/orca/scripts/web/speech_generator.py
index 4f654ddae..95a2f0c99 100644
--- a/src/orca/scripts/web/speech_generator.py
+++ b/src/orca/scripts/web/speech_generator.py
@@ -243,6 +243,10 @@ class SpeechGenerator(speech_generator.SpeechGenerator):
return []
objs = self._script.utilities.detailsIn(obj)
+ if not objs:
+ container = pyatspi.findAncestor(obj, self._script.utilities.hasDetails)
+ objs = self._script.utilities.detailsIn(container)
+
if not objs:
return []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]