From 23b55a9ad1312d9165cb7ed7be61916c705e3c68 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Tue, 13 May 2014 19:52:25 +0200 Subject: [PATCH] Good point, neil, KP_ENTER should count too --- naja/widgets/selector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1