diff options
author | hut <hut@lavabit.com> | 2011-10-15 00:39:18 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-15 00:39:18 +0200 |
commit | 9c37875e4cf983ec4dece175728d78350b7737c6 (patch) | |
tree | bf812da459545060742af34eee20cc2fb34aba03 /ranger | |
parent | 531d8b2def5fcf43d70819c86fc612028ca98f4d (diff) | |
download | ranger-9c37875e4cf983ec4dece175728d78350b7737c6.tar.gz |
ext.keybindings_parser: fixed --list-unused-keys
Diffstat (limited to 'ranger')
-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) |