fixes bug #582
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 13 Sep 2010 21:42:23 +0000 (23:42 +0200)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 6 Oct 2010 09:05:02 +0000 (11:05 +0200)
handle keyboard entries in wizard correctly for dynamic config elements

lib/python/Screens/Wizard.py

index 1bff028..a752d31 100755 (executable)
@@ -387,10 +387,14 @@ class Wizard(Screen):
        def keyNumberGlobal(self, number):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self.configInstance.keyNumberGlobal(number)
+               elif (self.wizard[self.currStep]["config"]["type"] == "dynamic"):
+                       self["config"].handleKey(KEY_0 + number)
 
        def keyGotAscii(self):
                if (self.wizard[self.currStep]["config"]["screen"] != None):
                        self["config"].handleKey(KEY_ASCII)
+               elif (self.wizard[self.currStep]["config"]["type"] == "dynamic"):
+                       self["config"].handleKey(KEY_ASCII)
                
        def left(self):
                self.resetCounter()