Good point, neil, KP_ENTER should count too
authorStefano Rivera <stefano@rivera.za.net>
Tue, 13 May 2014 17:52:25 +0000 (19:52 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Tue, 13 May 2014 17:53:43 +0000 (19:53 +0200)
naja/widgets/selector.py

index 5e563a645bbeedbfb22049ddeed20118f9dbb3cb..9b7b52391c62de4285cc741d0aa70f7279677f06 100644 (file)
@@ -29,7 +29,7 @@ class SelectorWidget(Container):
                     self.position -= 1
                 self.position %= len(self.widgets)
                 return True
-            elif ev.key == pgl.K_RETURN:
+            elif ev.key in (pgl.K_RETURN, pgl.K_KP_ENTER):
                 return self.widgets[self.position].callback('click')
 
         return super(SelectorWidget, self).handle_event(ev)