summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-10-14 16:50:43 +0200
committerhut <hut@lavabit.com>2010-10-14 16:50:43 +0200
commitc1d6967ddd4c3565895717418234ceb5543b9dea (patch)
treed2bd6b1f162ee3fd4387e4288fe79155a1067c1b /ranger
parente3d21ea87c4405ae23ca37f6ff26bcca377a0d01 (diff)
downloadranger-c1d6967ddd4c3565895717418234ceb5543b9dea.tar.gz
ext.keybinding_parser: extended examples in docstring
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/keybinding_parser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/keybinding_parser.py b/ranger/ext/keybinding_parser.py
index e044d80d..944ce2b8 100644
--- a/ranger/ext/keybinding_parser.py
+++ b/ranger/ext/keybinding_parser.py
@@ -21,7 +21,9 @@ def parse_keybinding(obj):
 	Translate a keybinding to a sequence of integers
 
 	Example:
-	lol<CR>   =>   (108, 111, 108, 10)
+	lol<CR>   =>   (ord('l'), ord('o'), ord('l'), ord('\n'))
+	          =>   (108, 111, 108, 10)
+	x<A-Left> =>   (120, (27, curses.KEY_LEFT))
 	"""
 	assert isinstance(obj, (tuple, int, str))
 	if isinstance(obj, tuple):
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204