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.
 """
='author hut <hut@lavabit.com> 2010-03-12 19:19:56 +0100 committer hut <hut@lavabit.com> 2010-03-12 19:19:56 +0100 more documentation' href='/akspecs/ranger/commit/INSTALL?h=v1.4.0&id=7582555b50f058b316c04ce8ab977bed36da1585'>7582555b ^
b06433bc ^

582f3519 ^
b06433bc ^
3edc9f86 ^
b06433bc ^
7582555b ^
84c49ab7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23