use correct nim-id for scan
[enigma2.git] / lib / python / Tools / KeyBindings.py
1
2 keyBindings = { }
3
4 def addKeyBinding(key, context, action):
5         if (context, action) in keyBindings:
6                 keyBindings[(context, action)].append(key)
7         else:
8                 keyBindings[(context, action)] = [key]
9
10 def queryKeyBinding(context, action):
11         if (context, action) in keyBindings:
12                 return keyBindings[(context, action)]
13         else:
14                 return [ ]
15
16 def getKeyDescription(key):
17         return "key_%0x" % key