[orca] Don't speak ancestors when returning from typeahead search
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't speak ancestors when returning from typeahead search
- Date: Thu, 22 Dec 2016 10:30:34 +0000 (UTC)
commit 2a1134f829a960fc05a1f37e981097c75c30509d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Dec 22 05:29:44 2016 -0500
Don't speak ancestors when returning from typeahead search
src/orca/speech_generator.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech_generator.py b/src/orca/speech_generator.py
index 39e76f4..0102faa 100644
--- a/src/orca/speech_generator.py
+++ b/src/orca/speech_generator.py
@@ -1510,6 +1510,9 @@ class SpeechGenerator(generator.Generator):
if priorObj and priorObj.getRole() == pyatspi.ROLE_TOOL_TIP:
return []
+ if self._script.utilities.isTypeahead(priorObj):
+ return []
+
commonAncestor = self._script.utilities.commonAncestor(priorObj, obj)
try:
role = commonAncestor.getRole()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]