X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7bc4a59528ab13f3062dc1520e76f9ecedd87400..34c3f1a742135c764ced560e8479e77129082301:/lib/python/Screens/TimerEdit.py diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py index 41b6a12e..2fe389ee 100644 --- a/lib/python/Screens/TimerEdit.py +++ b/lib/python/Screens/TimerEdit.py @@ -15,6 +15,12 @@ class TimerEdit(Screen): "cancel": self.close }) + self["shortcuts"] = ActionMap(["ShortcutActions"], + { + "red": self.beginFocus, + "yellow": self.endFocus + }) + self.entry = entry # begin, end, description, service self["begin"] = TimeInput() @@ -28,6 +34,12 @@ class TimerEdit(Screen): self["apply"] = Button("Apply") self["service"] = Button() + def beginFocus(self): + self.setFocus(self["begin"]) + + def endFocus(self): + self.setFocus(self["end"]) + def apply(self): print "applied!"