[orca] Fix for bgo#618827 - The generatorCache is not getting dumped when using Gecko's caret or structural



commit c806010df03c5e5f6b74ba010f2ac5fde20a6153
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Sun May 16 22:10:06 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 b310794..95cbdea 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -1009,6 +1009,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]