From 674b08607f058fe403505e5a8c4038b879709ec2 Mon Sep 17 00:00:00 2001 From: 9and3r <9and3r@gmail.com> Date: Sun, 24 May 2015 23:46:44 +0200 Subject: [PATCH] Fix input manager --- mopidy_touchscreen/input/input_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mopidy_touchscreen/input/input_manager.py b/mopidy_touchscreen/input/input_manager.py index bda2493..dcdd1fa 100644 --- a/mopidy_touchscreen/input/input_manager.py +++ b/mopidy_touchscreen/input/input_manager.py @@ -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)