orca r3647 - in trunk: . src/orca/scripts



Author: richb
Date: Wed Feb 27 20:30:03 2008
New Revision: 3647
URL: http://svn.gnome.org/viewvc/orca?rev=3647&view=rev

Log:
        * src/orca/scripts/StarOffice.py:
          Fix for bug #517502 - Orca should not speak the previously 
          focused menu item when arrowing across the menu bar in OpenOffice.


Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/StarOffice.py

Modified: trunk/src/orca/scripts/StarOffice.py
==============================================================================
--- trunk/src/orca/scripts/StarOffice.py	(original)
+++ trunk/src/orca/scripts/StarOffice.py	Wed Feb 27 20:30:03 2008
@@ -2301,6 +2301,13 @@
         - event: the Event
         """
 
+        # If this is state change "focused" event and event.source isn't a
+        # focused object, then just return. See bug #517502 for more details.
+        #
+        if event.type.startswith("object:state-changed:focused") and \
+           not event.source.getState().contains(pyatspi.STATE_FOCUSED):
+            return
+
         # Check to see if we are in the Presentation startup wizard. If so,
         # then speak the object that currently has focus.
         #



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