diff options
-rw-r--r-- | ranger/ext/keybinding_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py index d03d6ed1..295855fb 100644 --- a/ranger/ext/keybinding_parser.py +++ b/ranger/ext/keybinding_parser.py @@ -68,7 +68,7 @@ for n in range(64): special_keys.update(very_special_keys) del very_special_keys -reverse_special_keys = dict((v, k) for k, v in special_keys.items()) +reversed_special_keys = dict((v, k) for k, v in special_keys.items()) def parse_keybinding(obj): @@ -129,8 +129,8 @@ def construct_keybinding(iterable): def key_to_string(key): if key in range(33, 127): return chr(key) - if key in reverse_special_keys: - return "<%s>" % reverse_special_keys[key] + if key in reversed_special_keys: + return "<%s>" % reversed_special_keys[key] return "<%s>" % str(key) |