summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/container/keymap.py1
-rw-r--r--ranger/defaults/keys.py2
2 files changed, 1 insertions, 2 deletions
diff --git a/ranger/container/keymap.py b/ranger/container/keymap.py
index e44fcfd7..d52a5215 100644
--- a/ranger/container/keymap.py
+++ b/ranger/container/keymap.py
@@ -134,7 +134,6 @@ class KeyManager(object):
 		assert isinstance(context, str)
 		assert context in self.contexts, "no such context: " + context
 		return self.contexts[context]
-	__getitem__ = get_context
 
 	def use_context(self, context):
 		context = self.get_context(context)
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 593bfbbc..28028944 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -110,7 +110,7 @@ map.dir('<C-H>', alias='<backspace>')
 # ===================================================================
 # == Define keys in "browser" context:
 # ===================================================================
-map = keymanager['browser']
+map = keymanager.get_context('browser')
 map.merge(global_keys)
 map.merge(vim_aliases)
 
> 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 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