Audio/AudioControl: Commit loads of long uncommited changes
[audiocontrol.git] / Bindings.py
index aaac851..b6cfd81 100644 (file)
@@ -81,6 +81,16 @@ class KeyList(Node.Node):
         self._list.append(map)
         self._callCallbacks()
 
+    def prepend(self, map):
+        self._list[:0] = [map]
+        self._callCallbacks()
+
+    def removeMap(self, map):
+        for i in (range(len(self._list))):
+            if self._list[i] is map:
+                self._list[i:i+1] = []
+                return
+
     def replaceFromIndex(self, index, maps):
         self._list[index:] = maps
         self._callCallbacks()