- add listbox
[enigma2.git] / mytest.py
index b3d1701c6c126516ec741b542de3e1f554a23ec7..5233d85e8324e168b3fe0decb604f692c764ce96 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -100,7 +100,12 @@ class Session:
                        self.currentWindow = None
 
        def keyEvent(self, code):
-               self.currentDialog.data["okbutton"]["instance"].push()
+               print "code " + str(code)
+               if code == 32:
+                       self.currentDialog.data["okbutton"]["instance"].push()
+               
+               if code >= 0x30 and code <= 0x39:
+                       self.currentDialog.data["menu"]["instance"].moveSelection(code - 0x31)
 
        def close(self):
                self.delayTimer.start(0, 1)