[orca/gnome-3-6] Fix for bug 680228 - In Thunderbird 14.0 e-mail address auto completion results are not spoken
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-3-6] Fix for bug 680228 - In Thunderbird 14.0 e-mail address auto completion results are not spoken
- Date: Mon, 15 Oct 2012 15:58:03 +0000 (UTC)
commit 79b2dadef2ddd8b92b954c748d62d53dac630593
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Oct 15 11:55:17 2012 -0400
Fix for bug 680228 - In Thunderbird 14.0 e-mail address auto completion results are not spoken
src/orca/scripts/apps/Thunderbird/script.py | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/apps/Thunderbird/script.py b/src/orca/scripts/apps/Thunderbird/script.py
index 0a6cbef..62d4525 100644
--- a/src/orca/scripts/apps/Thunderbird/script.py
+++ b/src/orca/scripts/apps/Thunderbird/script.py
@@ -485,7 +485,16 @@ class Script(Gecko.Script):
default.Script.onTextInserted(self, event)
return
- if event.type.endswith("system") and event.any_data:
+ # Mozilla cannot seem to get their ":system" suffix right
+ # to save their lives, so we'll add yet another sad hack.
+ try:
+ text = event.source.queryText()
+ except:
+ hasSelection = False
+ else:
+ hasSelection = text.getNSelections() > 0
+
+ if (hasSelection or 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
# followed by ">>" followed by the address. Therefore
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]