X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1a46b8d1505a1496dfdce0a9f96dde7efbc65d65..8ade23537a682d4b0c9709d533b25702bde2ee23:/mytest.py?ds=sidebyside diff --git a/mytest.py b/mytest.py index b3d1701c..5233d85e 100644 --- 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)