9and3r преди 10 години
родител
ревизия
674b08607f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      mopidy_touchscreen/input/input_manager.py

+ 2 - 1
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)