Fix input manager

This commit is contained in:
9and3r
2015-05-24 23:46:44 +02:00
parent 54091dcfbd
commit 674b08607f

View File

@@ -67,7 +67,8 @@ class InputManager():
return self.key_up(event)
def key_down(self, event):
if len(event.unicode) > 0 and event.key not in \
if event.unicode is not None\
and len(event.unicode) > 0 and event.key not in \
InputManager.special_keys:
return InputEvent(InputManager.key, None, None, None,
None, event.unicode)