diff options
-rw-r--r-- | ranger/defaults/keys.py | 2 | ||||
-rw-r--r-- | ranger/ext/keybinding_parser.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index fc0beab6..0a9cb6a3 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -261,7 +261,7 @@ map("`<bg>", "'<bg>", "m<bg>", fm.draw_bookmarks()) # ---------------------------------------------------- change views map('i', fm.display_file()) map('<C-P>', fm.display_log()) -map('?', KEY_F1, fm.display_help()) +map('?', '<F1>', fm.display_help()) map('w', lambda arg: arg.fm.ui.open_taskview()) # ------------------------------------------------ system functions diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py index c33ac12f..6ef08d94 100644 --- a/ranger/ext/keybinding_parser.py +++ b/ranger/ext/keybinding_parser.py @@ -94,3 +94,6 @@ for char in ascii_lowercase: for char in (ascii_lowercase + '0123456789'): special_keys['a-' + char] = (27, ord(char)) + +for n in range(64): + special_keys['f' + str(n)] = curses.KEY_F0 + n |