From bf0fe3c43bbde28c63cd31591885f290396db72a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= Date: Thu, 11 Aug 2016 15:45:44 +0200 Subject: [PATCH] clear keychain properly fixes #1805 --- qutebrowser/keyinput/modeman.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index 9aa492062..71a83b9a3 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -282,6 +282,9 @@ class ModeManager(QObject): raise NotInModeError("Not in mode {}!".format(mode)) log.modes.debug("Leaving mode {}{}".format( mode, '' if reason is None else ' (reason: {})'.format(reason))) + # leaving a mode implies clearing keychain, see + # https://github.com/The-Compiler/qutebrowser/issues/1805 + self.clear_keychain() self.mode = usertypes.KeyMode.normal self.left.emit(mode, self.mode, self._win_id)