From 9c37875e4cf983ec4dece175728d78350b7737c6 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 15 Oct 2011 00:39:18 +0200 Subject: ext.keybindings_parser: fixed --list-unused-keys --- ranger/ext/keybinding_parser.py | 6 +++--- 1 file 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) -- cgit 1.4.1-2-gfad0