add socket mmi plugin,
[enigma2.git] / keymapparser.py
index 5c93092..7131276 100644 (file)
@@ -7,8 +7,7 @@ from keyids import KEYIDS;
 # these are only informational (for help)...
 from Tools.KeyBindings import addKeyBinding
 
-def readKeymap(filename = "/usr/share/enigma2/keymap.xml"):
-
+def readKeymap(filename):
        p = enigma.eActionMap.getInstance()
        assert p
 
@@ -64,11 +63,11 @@ def readKeymap(filename = "/usr/share/enigma2/keymap.xml"):
                                p.bindKey(filename, device, keyid, flags, context, mapto)
                                addKeyBinding(filename, keyid, context, mapto, flags)
 
-               parseKeys("generic", cmap)
-
                for device in elementsWithTag(cmap.childNodes, "device"):
                        parseKeys(str(device.getAttribute("name")), device)
 
+               parseKeys("generic", cmap)
+
 def removeKeymap(filename):
        p = enigma.eActionMap.getInstance()
        p.unbindKeyDomain(filename)