From dfada850e0ebcbc1f9a847bbf964deed27ef17d4 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Fri, 5 Jun 2015 16:52:33 +0200 Subject: [PATCH] Update code after refactor, and add migration --- qutebrowser/config/configdata.py | 2 ++ qutebrowser/keyinput/modeman.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index aa7a9c8c8..f9b0470c7 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -1354,4 +1354,6 @@ CHANGED_KEY_COMMANDS = [ (re.compile(r'^scroll 0 -50$'), r'scroll up'), (re.compile(r'^scroll 50 0$'), r'scroll right'), (re.compile(r'^scroll ([-\d]+ [-\d]+)$'), r'scroll-px \1'), + + (re.compile(r'^search$'), r'search ;; clear-keychain'), ] diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index 5b03bd9e0..6906a8720 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -321,4 +321,4 @@ class ModeManager(QObject): @cmdutils.register(instance='mode-manager', scope='window', hide=True) def clear_keychain(self): """Clear the currently entered key chain.""" - self._handlers[self.mode].__self__.clear_keystring() + self._parsers[self.mode].clear_keystring()