From 0e61797c03c26a8b004dff187a4e26fc6afb26e2 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 11 Jul 2007 13:51:02 +0000 Subject: show 'l' keypresses in helpscreen --- lib/python/Tools/KeyBindings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/python/Tools') 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 [ ] -- cgit v1.2.3