diff options
author | hut <hut@lavabit.com> | 2010-10-14 16:50:43 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-10-14 16:50:43 +0200 |
commit | c1d6967ddd4c3565895717418234ceb5543b9dea (patch) | |
tree | d2bd6b1f162ee3fd4387e4288fe79155a1067c1b | |
parent | e3d21ea87c4405ae23ca37f6ff26bcca377a0d01 (diff) | |
download | ranger-c1d6967ddd4c3565895717418234ceb5543b9dea.tar.gz |
ext.keybinding_parser: extended examples in docstring
-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): |