diff options
-rw-r--r-- | ranger/core/environment.py | 2 | ||||
-rw-r--r-- | ranger/defaults/keys.py | 4 | ||||
-rw-r--r-- | ranger/gui/ui.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ranger/core/environment.py b/ranger/core/environment.py index 49bc8a5c..6b2d692c 100644 --- a/ranger/core/environment.py +++ b/ranger/core/environment.py @@ -24,7 +24,7 @@ from ranger.container import KeyBuffer, KeyManager, History from ranger.ext.signal_dispatcher import SignalDispatcher from ranger.shared import SettingsAware -ALLOWED_CONTEXTS = ('general', 'pager', 'embedded_pager', 'taskview', +ALLOWED_CONTEXTS = ('browser', 'pager', 'embedded_pager', 'taskview', 'console') class Environment(SettingsAware, SignalDispatcher): diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index d22d8c50..593bfbbc 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -108,9 +108,9 @@ map.dir('<C-H>', alias='<backspace>') # =================================================================== -# == Define keys in "general" context: +# == Define keys in "browser" context: # =================================================================== -map = keymanager['general'] +map = keymanager['browser'] map.merge(global_keys) map.merge(vim_aliases) diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 983cffc8..3ac45ebe 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -57,7 +57,7 @@ class UI(DisplayableContainer): self.fm = fm self.win = curses.initscr() - self.env.keymanager.use_context('general') + self.env.keymanager.use_context('browser') self.env.keybuffer.clear() DisplayableContainer.__init__(self, None) @@ -139,7 +139,7 @@ class UI(DisplayableContainer): if DisplayableContainer.press(self, key): return - self.env.keymanager.use_context('general') + self.env.keymanager.use_context('browser') self.env.key_append(key) kbuf = self.env.keybuffer cmd = kbuf.command |