service: add sort of servicelist including all required layers
[enigma2.git] / lib / python / Components / ConfigList.py
index 35ea093..e95f8c0 100644 (file)
@@ -10,18 +10,24 @@ class ConfigList(HTMLComponent, GUIComponent):
                self.l = eListboxPythonConfigContent()
                self.l.setList(list)
                self.l.setSeperation(100)
+               self.list = list
        
        def toggle(self):
                selection = self.getCurrent()
                selection[1].toggle()
                self.invalidateCurrent()
-       
+
+       def handleKey(self, key):
+               selection = self.getCurrent()
+               selection[1].handleKey(key)
+               self.invalidateCurrent()
+
        def getCurrent(self):
                return self.l.getCurrentSelection()
        
        def invalidateCurrent(self):
                self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
-       
+
        def GUIcreate(self, parent):
                self.instance = eListbox(parent)
                self.instance.setContent(self.l)