AttributeError: 'NoneType' object has no attribute 'isdigit'

Hi,

When the mouse cursor is over a figure then pressing certain
key buttons such as Tab, CapsLock, Enter, Backspace etc
will trigger the following exception:

Traceback (most recent call last):
   File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py", line 160, in key_press_event
     FigureCanvasBase.key_press_event(self, key)
   File "/usr/local/lib/python2.3/site-packages/matplotlib/backend_bases.py", line 806, in key_press_event
     func(event)
   File "/usr/local/lib/python2.3/site-packages/matplotlib/backend_bases.py", line 987, in key_press
     elif (event.key.isdigit() and event.key!='0') or event.key=='a':
AttributeError: 'NoneType' object has no attribute 'isdigit'

I am using matplotlib from svn (0.88).

Pearu