diff options
-rw-r--r-- | ranger/container/keymap.py | 1 | ||||
-rw-r--r-- | ranger/defaults/keys.py | 2 |
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) |