projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a3294f
)
Good point, neil, KP_ENTER should count too
author
Stefano Rivera
<stefano@rivera.za.net>
Tue, 13 May 2014 17:52:25 +0000
(19:52 +0200)
committer
Stefano Rivera
<stefano@rivera.za.net>
Tue, 13 May 2014 17:53:43 +0000
(19:53 +0200)
naja/widgets/selector.py
patch
|
blob
|
history
diff --git
a/naja/widgets/selector.py
b/naja/widgets/selector.py
index 5e563a645bbeedbfb22049ddeed20118f9dbb3cb..9b7b52391c62de4285cc741d0aa70f7279677f06 100644
(file)
--- 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)