aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-07-11 13:51:02 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-07-11 13:51:02 +0000
commit0e61797c03c26a8b004dff187a4e26fc6afb26e2 (patch)
tree67ceebe02b5140652540ccf6e175d50a3ce93d76 /lib/python/Tools
parent65a75b9655aa81b1a0c3e6ead3513af5b028cf80 (diff)
downloadenigma2-0e61797c03c26a8b004dff187a4e26fc6afb26e2.tar.gz
enigma2-0e61797c03c26a8b004dff187a4e26fc6afb26e2.zip
show 'l' keypresses in helpscreen
Diffstat (limited to 'lib/python/Tools')
-rw-r--r--lib/python/Tools/KeyBindings.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Tools/KeyBindings.py b/lib/python/Tools/KeyBindings.py
index 293fee11..09dde74b 100644
--- a/lib/python/Tools/KeyBindings.py
+++ b/lib/python/Tools/KeyBindings.py
@@ -38,12 +38,13 @@ keyDescriptions = {
KEYIDS["KEY_RECORD"]: ("sh_radio", 585, 425)
}
-def addKeyBinding(domain, key, context, action):
- keyBindings.setdefault((context, action), []).append((key, domain))
+def addKeyBinding(domain, key, context, action, flags):
+ keyBindings.setdefault((context, action), []).append((key, domain, flags))
+# returns a list of (key, flags) for a specified action
def queryKeyBinding(context, action):
if (context, action) in keyBindings:
- return [x[0] for x in keyBindings[(context, action)]]
+ return [(x[0], x[2]) for x in keyBindings[(context, action)]]
else:
return [ ]