And ASDF too
authorStefano Rivera <stefano@rivera.za.net>
Tue, 13 May 2014 17:55:54 +0000 (19:55 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Tue, 13 May 2014 17:55:54 +0000 (19:55 +0200)
naja/widgets/selector.py

index 9b7b52391c62de4285cc741d0aa70f7279677f06..5047cf8296a8cfa794f2ee92b32aa5909ee5b345 100644 (file)
@@ -22,8 +22,8 @@ class SelectorWidget(Container):
 
     def handle_event(self, ev):
         if ev.type == pgl.KEYDOWN:
-            if ev.key in (pgl.K_DOWN, pgl.K_UP):
-                if ev.key == pgl.K_DOWN:
+            if ev.key in (pgl.K_DOWN, pgl.K_UP, pgl.K_s, pgl.K_w):
+                if ev.key in (pgl.K_DOWN, pgl.K_s):
                     self.position += 1
                 else:
                     self.position -= 1