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.
 """
ccdafa6905'>^
dbe12410 ^
c5ffb6e1 ^














d44123ca ^
c5ffb6e1 ^



d44123ca ^
c5ffb6e1 ^


d44123ca ^


c5ffb6e1 ^




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52