git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix rfmod
[enigma2.git]
/
keymapparser.py
diff --git
a/keymapparser.py
b/keymapparser.py
index 7b64ae04af3436979e1e014aa01a2f8f1c037ce1..23cd5a86a536907c79e46325fbd9d2983e351225 100644
(file)
--- a/
keymapparser.py
+++ b/
keymapparser.py
@@
-3,6
+3,9
@@
import enigma
from keyids import KEYIDS;
from keyids import KEYIDS;
+# these are only informational (for help)...
+from Tools.KeyBindings import addKeyBinding
+
def readKeymap():
p = enigma.eActionMapPtr()
def readKeymap():
p = enigma.eActionMapPtr()
@@
-14,8
+17,10
@@
def readKeymap():
try:
source = open(filename1)
try:
source = open(filename1)
+ filename = filename1
except:
source = open(filename2)
except:
source = open(filename2)
+ filename = filename2
# raise "couldn't open keymap.xml!"
try:
# raise "couldn't open keymap.xml!"
try:
@@
-69,6
+74,7
@@
def readKeymap():
# print context + "::" + mapto + " -> " + device + "." + hex(keyid)
p.bindKey(device, keyid, flags, context, mapto)
# print context + "::" + mapto + " -> " + device + "." + hex(keyid)
p.bindKey(device, keyid, flags, context, mapto)
+ addKeyBinding(keyid, context, mapto)
parseKeys("generic", cmap)
parseKeys("generic", cmap)