diff options
-rw-r--r-- | ranger/ext/keybinding_parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py index e044d80d..944ce2b8 100644 --- a/ranger/ext/keybinding_parser.py +++ b/ranger/ext/keybinding_parser.py @@ -21,7 +21,9 @@ def parse_keybinding(obj): Translate a keybinding to a sequence of integers Example: - lol<CR> => (108, 111, 108, 10) + lol<CR> => (ord('l'), ord('o'), ord('l'), ord('\n')) + => (108, 111, 108, 10) + x<A-Left> => (120, (27, curses.KEY_LEFT)) """ assert isinstance(obj, (tuple, int, str)) if isinstance(obj, tuple): |