4 def addKeyBinding(key, context, action):
5 if (context, action) in keyBindings:
6 keyBindings[(context, action)].append(key)
8 keyBindings[(context, action)] = [key]
10 def queryKeyBinding(context, action):
11 if (context, action) in keyBindings:
12 return keyBindings[(context, action)]
16 def getKeyDescription(key):
17 return "key_%0x" % key