If one presses and release either ALT key an odd number of times, then 
tries to press left CTRL, Pyglet no events are fired. (No on_key_pressed, 
on_key_released, or on_draw.) If one presses a letter key instead of left 
CTRL, on_key_pressed doesn't get called, but _on_key_released does. Every 
other odd release of an ALT key fires no _on_draw, as it should.

Here is code that you can use to replicate this bug:

import pyglet

window = pyglet.window.Window()

@window.event
def on_key_press(symbol, modifiers):
    print 'key pressed'

@window.event
def on_key_release(symbol, modifiers):
    print 'key released'

@window.event
def on_draw():
    print 'drew '
    
pyglet.app.run()

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to