- add shortcuts
[enigma2.git] / lib / python / Screens / TimerEdit.py
index 41b6a12e86151fd0d490b24e2aa677b4fe06e908..2fe389eee387849ed990936d19bae5ccac48fa05 100644 (file)
@@ -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!"