Pārlūkot izejas kodu

Fix input manager

9and3r 10 gadi atpakaļ
vecāks
revīzija
674b08607f
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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)