diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-19 02:16:16 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-19 02:16:16 +0000 |
| commit | c8af50a4b30d74d6ee4f8c985177e16edf58e9d1 (patch) | |
| tree | 2d4d90f938909889ba0daab83888debd54026e21 /lib/python/Tools | |
| parent | 5d6aca12c38d3eee7a5d34f778c5ac93a5f6cd9f (diff) | |
| download | enigma2-c8af50a4b30d74d6ee4f8c985177e16edf58e9d1.tar.gz enigma2-c8af50a4b30d74d6ee4f8c985177e16edf58e9d1.zip | |
help: improve key description, a bit.
Diffstat (limited to 'lib/python/Tools')
| -rw-r--r-- | lib/python/Tools/KeyBindings.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/python/Tools/KeyBindings.py b/lib/python/Tools/KeyBindings.py index b55e3555..cc0a2d14 100644 --- a/lib/python/Tools/KeyBindings.py +++ b/lib/python/Tools/KeyBindings.py @@ -1,6 +1,15 @@ keyBindings = { } +from keyids import KEYIDS + +keyDescriptions = { + KEYIDS["KEY_RED"]: "red", + KEYIDS["KEY_BLUE"]: "blue", + KEYIDS["KEY_MENU"]: "menu", + KEYIDS["KEY_VIDEO"]: "video" + } + def addKeyBinding(key, context, action): if (context, action) in keyBindings: keyBindings[(context, action)].append(key) @@ -14,4 +23,6 @@ def queryKeyBinding(context, action): return [ ] def getKeyDescription(key): + if key in keyDescriptions: + return keyDescriptions[key] return "key_%0x" % key |
