delete characters in the InputBox with mute key
[enigma2.git] / lib / python / Components / ConfigList.py
index 3114231eb337fe54bcde9dfe1eec738c6f93a150..6ff9116ffef91da2b4bc535276badb20583ed8e9 100644 (file)
@@ -19,15 +19,23 @@ class ConfigList(HTMLComponent, GUIComponent):
 
        def handleKey(self, key):
                selection = self.getCurrent()
-               selection[1].handleKey(key)
-               self.invalidateCurrent()
+               if selection[1].parent.enabled:
+                       selection[1].handleKey(key)
+                       self.invalidateCurrent()
 
        def getCurrent(self):
                return self.l.getCurrentSelection()
        
        def invalidateCurrent(self):
                self.l.invalidateEntry(self.l.getCurrentSelectionIndex())
-       
+               
+       def invalidate(self, entry):
+               i = 0
+               for x in self.list:
+                       if (entry.getConfigPath() == x[1].parent.getConfigPath()):
+                               self.l.invalidateEntry(i)
+                       i += 1
+               
        def GUIcreate(self, parent):
                self.instance = eListbox(parent)
                self.instance.setContent(self.l)