Skip to content

Commit

Permalink
Merge pull request #7 from Galland/master
Browse files Browse the repository at this point in the history
Bugfix releasing a key that was pressed over another window (i.e. Shift)
  • Loading branch information
fdb committed Nov 16, 2015
2 parents 318d594 + f7a4384 commit 3582c22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodebox/graphics/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -3811,7 +3811,10 @@ def _on_key_release(self, keycode, modifiers):
layer.on_key_release(self.key)
self.on_key_release(self.key)
self._keys.char = ""
self._keys.remove(keycode)
try:
self._keys.remove(keycode)
except ValueError:
pass
self._keys.pressed = False

def _on_text(self, text):
Expand Down

0 comments on commit 3582c22

Please sign in to comment.