Mar 4, 2012, 7:13:35 AM3/4/12
I think there might be bug with the key_press and release dispatches.
They seem to work perfectly for me without modifiers and with the ALT
modifier, but when I hold CTRL the symbol dispatched is given as None
for most of the keys.
For example, with this sort of simple function in my class:
def on_key_press(self, symbol, modifiers):
print 'Key pressed (symbol=%s, modifiers=%s)'%
I get outputs like:
Key pressed (symbol=120, modifiers=4) (with
Key pressed (symbol=None, modifiers=2) (with
I can't think of any reason that the symbol should be dispatched as
None for simple characters, so I assume there's some small bug. I
could endeavor to fix this one myself, but it's likely a quick fix for
the original author.
There's also the chance of course that this isn't a bug at all and I'm
just doing something stupid :)
Thanks again for all the help - the on_mouse_scroll bug fix worked