[orca/gnome-2-30] Fix for bgo#618827 - The generatorCache is not getting dumped when using Gecko's caret or structural
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/gnome-2-30] Fix for bgo#618827 - The generatorCache is not getting dumped when using Gecko's caret or structural
- Date: Mon, 17 May 2010 02:12:28 +0000 (UTC)
commit 4f10079da623a9938046626f5f4a95dfda038b64
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun May 16 22:11:29 2010 -0400
Fix for bgo#618827 - The generatorCache is not getting dumped when using Gecko's caret or structural navigation due to lack of AT-SPI events
src/orca/scripts/toolkits/Gecko/script.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index f0d89d4..e6fb4bd 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1144,6 +1144,13 @@ class Script(default.Script):
Returns True if the event is of interest.
"""
+ # We need to do this here. Orca caret and structural navigation
+ # often result in the user being repositioned without our getting
+ # a corresponding AT-SPI event. Without an AT-SPI event, script.py
+ # won't know to dump the generator cache. See bgo#618827.
+ #
+ self.generatorCache = {}
+
# The reason we override this method is that we only want
# to consume keystrokes under certain conditions. For
# example, we only control the arrow keys when we're
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]