GNOME Bugzilla – Bug 535747
Do not assume orca_state.lastNonModifierKeyEvent is non-None
Last modified: 2008-06-03 20:07:13 UTC
There is at least one instance in the code that assumes orca_state.lastNonModifierKeyEvent has been set: Traceback (most recent call last):
+ Trace 199165
s.processObjectEvent(event)
self.listeners[key](event) File "/usr/lib/python2.5/site-packages/orca/scripts/apps/gnome-screensaver-dialog.py", line 55, in onStateChanged default.Script.onStateChanged(self, event)
keyString = orca_state.lastNonModifierKeyEvent.event_string
As seen by the above stack trace, this is not always the case, so we need to handle it appropriately. See http://bugzilla.gnome.org/show_bug.cgi?id=530368#c16 for more info:
Created attachment 111809 [details] [review] Revision #1. Patch committed. Moving to "[pending]".