summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-18 17:56:13 +0200
committerhut <hut@lavabit.com>2010-04-18 17:56:13 +0200
commitdb33fb09410af685839816ce26c13167aedcfda3 (patch)
tree610222fe2d911fc0649d4477525942619cfe291b
parent77d237e4b2e6eac300bc03097dd2073caef83d51 (diff)
downloadranger-db33fb09410af685839816ce26c13167aedcfda3.tar.gz
defaults.keys: another example
-rw-r--r--ranger/defaults/keys.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 0fd25877..3f279d2b 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -69,8 +69,9 @@ map = keymanager.get_context('browser')
 map("d", fm.move(down=0.5, pages=True))
 map("u", fm.move(up=0.5, pages=True))
 
-# Add direction keys to all keymaps
+# Add keys to all contexts
 map = KeyMapWithDirections()  # create new empty keymap.
+map("q", fm.exit())
 map.dir("<down>", down=3)     # I'm quick, I want to move 3 at once!
 keymanager.merge_all(map)     # merge the new map into all existing ones.
 """