From 84682f90fa0e64354cb3f1798203d66f92dd751a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 25 Apr 2014 00:10:07 +0200 Subject: [PATCH] Log events in eventHandler --- qutebrowser/keyinput/modes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/keyinput/modes.py b/qutebrowser/keyinput/modes.py index c143efb8e..aa97d6de3 100644 --- a/qutebrowser/keyinput/modes.py +++ b/qutebrowser/keyinput/modes.py @@ -27,6 +27,7 @@ from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QEvent import qutebrowser.config.config as config import qutebrowser.commands.utils as cmdutils +import qutebrowser.utils.debug as debug manager = None @@ -181,7 +182,8 @@ class ModeManager(QObject): if typ not in [QEvent.KeyPress, QEvent.KeyRelease]: # We're not interested in non-key-events so we pass them through. return False - elif self.mode in self.passthrough: + logging.debug("Got event {} for {}".format(debug.EVENTS[typ], _obj)) + if self.mode in self.passthrough: # We're currently in a passthrough mode so we pass everything # through.*and* let the passthrough keyhandler know. # FIXME what if we leave the passthrough mode right here?