- fixed left/right in language selection (updates language on the fly)
[enigma2.git] / lib / python / Screens / LanguageSelection.py
index b9efd8b..4185737 100644 (file)
@@ -15,12 +15,14 @@ class LanguageSelection(Screen):
                self["list"] = LanguageList(self.list)
                self.updateList()
                
-               self["actions"] = ActionMap(["WizardActions"], 
+               self["actions"] = ActionMap(["OkCancelActions", "DirectionActions"], 
                {
                        "ok": self.save,
-                       "back": self.close,
+                       "cancel": self.close,
                        "up": self.up,
-                       "down": self.down
+                       "down": self.down,
+                       "left": self.left,
+                       "right": self.right
                }, -1)
                
        def save(self):
@@ -52,3 +54,13 @@ class LanguageSelection(Screen):
                self["list"].instance.moveSelection(self["list"].instance.moveDown)
                self.run()
                self.updateList()
+
+       def left(self):
+               self["list"].instance.moveSelection(self["list"].instance.pageUp)
+               self.run()
+               self.updateList()
+               
+       def right(self):
+               self["list"].instance.moveSelection(self["list"].instance.pageDown)
+               self.run()
+               self.updateList()
\ No newline at end of file