nodebox / nodebox-opengl

Free, cross-platform library for generating 2D animations with Python programming code.
http://www.cityinabottle.org/nodebox/
BSD 3-Clause "New" or "Revised" License
168 stars 29 forks source link

Bugfix releasing a key that was pressed over another window (i.e. Shift) #7

Closed Galland closed 8 years ago

Galland commented 10 years ago

Bug: Open a Nodebox window, go to another X window, press "Shift" key, focus again on the Nodebox window with the mouse and release "Shift" key. Nodebox exits with a ValueError exception because the key is not in the _keys list of pressed keys. Environment: Xubuntu Linux 14.04 (XFCE desktop)

Solution: ignore ValueError exceptions when removing keys from the _keys list