orca r3974 - in trunk: . src/orca/scripts/apps/soffice



Author: richb
Date: Wed Jun 11 21:48:33 2008
New Revision: 3974
URL: http://svn.gnome.org/viewvc/orca?rev=3974&view=rev

Log:
        * src/orca/scripts/apps/soffice/script.py:
          Fixed bug #537851 - Moving cursor with mouse in oowriter causes 
          traceback.


Modified:
   trunk/ChangeLog
   trunk/src/orca/scripts/apps/soffice/script.py

Modified: trunk/src/orca/scripts/apps/soffice/script.py
==============================================================================
--- trunk/src/orca/scripts/apps/soffice/script.py	(original)
+++ trunk/src/orca/scripts/apps/soffice/script.py	Wed Jun 11 21:48:33 2008
@@ -1857,7 +1857,8 @@
         if event.detail1 == -1:
             return
 
-        if orca_state.lastNonModifierKeyEvent:
+        if isinstance(orca_state.lastInputEvent, input_event.KeyboardEvent) \
+           and orca_state.lastNonModifierKeyEvent:
             event_string = orca_state.lastNonModifierKeyEvent.event_string
             mods = orca_state.lastInputEvent.modifiers
         else:



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