[orca] Eliminate some more chattiness with Thunderbird autocompletes
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Eliminate some more chattiness with Thunderbird autocompletes
- Date: Thu, 30 Jan 2014 23:29:51 +0000 (UTC)
commit 1fe20109b53a47726d68048378655e6918f532f4
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Thu Jan 30 18:28:49 2014 -0500
Eliminate some more chattiness with Thunderbird autocompletes
src/orca/scripts/apps/Thunderbird/script.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index a758f81..6f42e55 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -123,6 +123,7 @@ class Script(Gecko.Script):
return
self._lastAutoComplete = ""
+ self.pointOfReference['lastAutoComplete'] = None
obj = event.source
if not self.inDocumentContent(obj):
@@ -217,7 +218,7 @@ class Script(Gecko.Script):
default.Script.onTextInserted(self, event)
return
- if self._lastAutoComplete == event.any_data:
+ if self._lastAutoComplete and self._lastAutoComplete in event.any_data:
return
# Mozilla cannot seem to get their ":system" suffix right
@@ -236,6 +237,11 @@ class Script(Gecko.Script):
Gecko.Script.onTextInserted(self, event)
+ def onTextSelectionChanged(self, event):
+ """Callback for object:text-selection-changed accessibility events."""
+
+ default.Script.onTextSelectionChanged(self, event)
+
def onNameChanged(self, event):
"""Called whenever a property on an object changes.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]