orca r3941 - in trunk: . src/orca



Author: richb
Date: Fri May 30 15:54:29 2008
New Revision: 3941
URL: http://svn.gnome.org/viewvc/orca?rev=3941&view=rev

Log:
        * src/orca/default.py:
          Fixed bug #535747 - Do not assume orca_state.lastNonModifierKeyEvent 
          is non-None.


Modified:
   trunk/ChangeLog
   trunk/src/orca/default.py

Modified: trunk/src/orca/default.py
==============================================================================
--- trunk/src/orca/default.py	(original)
+++ trunk/src/orca/default.py	Fri May 30 15:54:29 2008
@@ -3672,7 +3672,10 @@
             #
             if isinstance(orca_state.lastInputEvent,
                           input_event.KeyboardEvent):
-                keyString = orca_state.lastNonModifierKeyEvent.event_string
+                if orca_state.lastNonModifierKeyEvent:
+                    keyString = orca_state.lastNonModifierKeyEvent.event_string
+                else:
+                    keyString = None
                 mods = orca_state.lastInputEvent.modifiers
                 isControlKey = mods & (1 << pyatspi.MODIFIER_CONTROL)
                 state = orca_state.locusOfFocus.getState()



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