mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Fix input manager
This commit is contained in:
@@ -67,7 +67,8 @@ class InputManager():
|
|||||||
return self.key_up(event)
|
return self.key_up(event)
|
||||||
|
|
||||||
def key_down(self, 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:
|
InputManager.special_keys:
|
||||||
return InputEvent(InputManager.key, None, None, None,
|
return InputEvent(InputManager.key, None, None, None,
|
||||||
None, event.unicode)
|
None, event.unicode)
|
||||||
|
|||||||
Reference in New Issue
Block a user