summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-19 18:34:07 +0200
committerhut <hut@lavabit.com>2010-04-19 18:34:07 +0200
commit4476932c619ba78c34c54449ff3b56fcfb2f2e3c (patch)
tree45c08bc0ae1086b38b30172662aeb60d162c72d2
parentd3926b4c0687c36b3c809b8035a7579a69ff8132 (diff)
downloadranger-4476932c619ba78c34c54449ff3b56fcfb2f2e3c.tar.gz
ext.keybinding_parser: added aliases for common special keys
-rw-r--r--ranger/ext/keybinding_parser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py
index 6ef08d94..015d173f 100644
--- a/ranger/ext/keybinding_parser.py
+++ b/ranger/ext/keybinding_parser.py
@@ -70,13 +70,16 @@ special_keys = {
 	'dir': DIRKEY,
 	'any': ANYKEY,
 	'bg': PASSIVE_ACTION,
+	'bs': curses.KEY_BACKSPACE,
 	'backspace': curses.KEY_BACKSPACE,
 	'backspace2': curses.ascii.DEL,
 	'delete': curses.KEY_DC,
 	'cr': ord("\n"),
 	'enter': ord("\n"),
+	'return': ord("\n"),
 	'space': ord(" "),
 	'esc': curses.ascii.ESC,
+	'escape': curses.ascii.ESC,
 	'down': curses.KEY_DOWN,
 	'up': curses.KEY_UP,
 	'left': curses.KEY_LEFT,