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



Author: joanied
Date: Sun May 18 03:01:01 2008
New Revision: 3900
URL: http://svn.gnome.org/viewvc/orca?rev=3900&view=rev

Log:
* src/orca/scripts/toolkits/Gecko/script.py:
  Fix for bug #533125 - Orca does not speak Search textbox in
  Firefox Download Manager if it is empty.



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	Sun May 18 03:01:01 2008
@@ -2094,7 +2094,8 @@
 
         # The search entries in Firefox's and Thunderbird's top toolbars
         # contain text which functions as the label (Yahoo, Entire Message)
-        # and which gets deleted just prior to the entry gaining focus.  If
+        # and which gets deleted just prior to the entry gaining focus.
+        # This is also true of the search entry in the Downloads frame. If
         # we pass that event on to the default script, it will set the
         # entry to the locus of focus silently and then the focus event
         # will not cause the entry to be spoken.  In addition, if the
@@ -2104,6 +2105,9 @@
         #
         if event.source and orca_state.locusOfFocus \
            and not self.isSameObject(event.source, orca_state.locusOfFocus):
+            if event.source.parent.getRole() == pyatspi.ROLE_FRAME:
+                return
+
             toolbar = self.getAncestor(event.source,
                                        [pyatspi.ROLE_TOOL_BAR],
                                        [pyatspi.ROLE_DOCUMENT_FRAME])



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