orca r4036 - in trunk: . src/orca/scripts/toolkits/Gecko



Author: joanied
Date: Tue Jul 15 01:04:11 2008
New Revision: 4036
URL: http://svn.gnome.org/viewvc/orca?rev=4036&view=rev

Log:
* src/orca/scripts/toolkits/Gecko/script.py:
  Fix for bug #542927 - Live region commands should be treated as
  structural navigation commands when in form fields in Firefox 3.



Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/toolkits/Gecko/script.py

Modified: trunk/src/orca/scripts/toolkits/Gecko/script.py
==============================================================================
--- trunk/src/orca/scripts/toolkits/Gecko/script.py	(original)
+++ trunk/src/orca/scripts/toolkits/Gecko/script.py	Tue Jul 15 01:04:11 2008
@@ -119,6 +119,12 @@
              Script.goBeginningOfLine,
              Script.goEndOfLine]
 
+        self._liveRegionFunctions = \
+            [Script.setLivePolitenessOff,
+             Script.advanceLivePoliteness,
+             Script.monitorLiveRegions,
+             Script.reviewLiveAnnouncement]
+
         if script_settings.controlCaretNavigation:
             debug.println(debug.LEVEL_CONFIGURATION,
                           "Orca is controlling the caret.")
@@ -965,7 +971,8 @@
             if handler and handler.function in self._caretNavigationFunctions:
                 return self.useCaretNavigationModel(keyboardEvent)
             elif handler \
-                 and handler.function in self.structuralNavigation.functions:
+                 and (handler.function in self.structuralNavigation.functions \
+                      or handler.function in self._liveRegionFunctions):
                 return self.useStructuralNavigationModel()
             else:
                 consumes = handler != None
@@ -974,7 +981,8 @@
             if handler and handler.function in self._caretNavigationFunctions:
                 return self.useCaretNavigationModel(keyboardEvent)
             elif handler \
-                 and handler.function in self.structuralNavigation.functions:
+                 and (handler.function in self.structuralNavigation.functions \
+                      or handler.function in self._liveRegionFunctions):
                 return self.useStructuralNavigationModel()
             else:
                 consumes = handler != None



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