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



Author: joanied
Date: Thu May 29 20:46:48 2008
New Revision: 3940
URL: http://svn.gnome.org/viewvc/orca?rev=3940&view=rev

Log:
* src/orca/scripts/toolkits/Gecko/script.py:
  Fix for bug #528644 - Orca should indicate when an autocomplete
  list has appeared in FF.



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	Thu May 29 20:46:48 2008
@@ -2419,6 +2419,21 @@
             if orca_state.locusOfFocus.getRole() in [pyatspi.ROLE_ENTRY,
                                                      pyatspi.ROLE_LIST_ITEM]:
                 self._autocompleteVisible = event.detail1
+                # If the autocomplete has just appeared, we want to speak
+                # its appearance if the user's verbosity level is verbose
+                # or if the user forced it to appear with (Alt+)Down Arrow.
+                #
+                if self._autocompleteVisible:
+                    speakIt = (settings.speechVerbosityLevel == \
+                               settings.VERBOSITY_LEVEL_VERBOSE)
+                    if not speakIt \
+                       and isinstance(orca_state.lastInputEvent, 
+                                      input_event.KeyboardEvent):
+                        keyEvent = orca_state.lastNonModifierKeyEvent
+                        speakIt = (keyEvent.event_string == ("Down"))
+                    if speakIt:
+                        speech.speak(rolenames.getSpeechForRoleName(\
+                                event.source, pyatspi.ROLE_AUTOCOMPLETE))
 
         # We care when the document frame changes it's busy state.  That
         # means it has started/stopped loading content.



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