From: Stefano Rivera Date: Tue, 13 May 2014 17:52:25 +0000 (+0200) Subject: Good point, neil, KP_ENTER should count too X-Git-Tag: 0.1~334 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=23b55a9ad1312d9165cb7ed7be61916c705e3c68;p=naja.git Good point, neil, KP_ENTER should count too --- diff --git a/naja/widgets/selector.py b/naja/widgets/selector.py index 5e563a6..9b7b523 100644 --- a/naja/widgets/selector.py +++ b/naja/widgets/selector.py @@ -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)