[orca] Don't present autocompleted text in response to object:text-selection-changed
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Don't present autocompleted text in response to object:text-selection-changed
- Date: Thu, 2 Jan 2014 19:36:22 +0000 (UTC)
commit fe6bdd413d024acad30e11ec0b092c5d0747c014
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jan 2 14:34:23 2014 -0500
Don't present autocompleted text in response to object:text-selection-changed
src/orca/scripts/default.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 426b758..380d39c 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2683,6 +2683,9 @@ class Script(script.Script):
if wasCommand:
return
+ if wasAutoComplete:
+ self.pointOfReference['lastAutoComplete'] = hash(event.source)
+
try:
text = event.source.queryText()
except NotImplementedError:
@@ -2727,6 +2730,9 @@ class Script(script.Script):
textSelections[hash(obj)] = newStart, newEnd
self.pointOfReference['textSelections'] = textSelections
+ if self.pointOfReference.get('lastAutoComplete') == hash(obj):
+ return
+
nSelections = text.getNSelections()
handled = self._speakTextSelectionState(nSelections)
if handled:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]