[orca/gnome-3-4] Fix for bug 673715 - Orca double-echoes keys pressed in Thunderbird address fields



commit 9684b4c273a9dc442828c6087901646f0f76baa9
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Apr 8 12:24:43 2012 -0400

    Fix for bug 673715 - Orca double-echoes keys pressed in Thunderbird address fields

 src/orca/scripts/apps/Thunderbird/script.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index f8d56d2..1eed892 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -481,6 +481,10 @@ class Script(Gecko.Script):
         # address so that we're not too "chatty." See bug #533042.
         #
         if parent.getRole() == pyatspi.ROLE_AUTOCOMPLETE:
+            if len(event.any_data) == 1:
+                default.Script.onTextInserted(self, event)
+                return
+
             if event.type.endswith("system") and event.any_data:
                 # The autocompleted address may start with the name,
                 # or it might start with the text typed by the user



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]