summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-16 17:35:04 +0200
committerhut <hut@lavabit.com>2010-04-16 17:35:04 +0200
commit42009d258db05e00b39b6e5a98127b6b26c5b958 (patch)
treed9970cc60fb6c73d5d3e03db73d6419b6a061726
parent5e0fa6810b8162e15fd506a255c4d2f52d9df82e (diff)
downloadranger-42009d258db05e00b39b6e5a98127b6b26c5b958.tar.gz
container.keybuffer: added documentation
-rw-r--r--ranger/container/keybuffer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/container/keybuffer.py b/ranger/container/keybuffer.py
index 970bbdb9..0f19a341 100644
--- a/ranger/container/keybuffer.py
+++ b/ranger/container/keybuffer.py
@@ -29,10 +29,12 @@ class KeyBuffer(object):
 		self.assign(keymap, direction_keys)
 
 	def assign(self, keymap, direction_keys):
+		"""Change the keymap and direction keys of the keybuffer"""
 		self.keymap = keymap
 		self.direction_keys = direction_keys
 
 	def add(self, key):
+		"""Add a key and evaluate it"""
 		assert isinstance(key, int)
 		assert key >= 0
 		self.all_keys.append(key)
@@ -155,6 +157,7 @@ class KeyBuffer(object):
 				self.done = True
 
 	def clear(self):
+		"""Reset the keybuffer.  Do this once before the first usage."""
 		self.max_alias_recursion = MAX_ALIAS_RECURSION
 		self.failure = False
 		self.done = False