Log events in eventHandler

This commit is contained in:
Florian Bruhin 2014-04-25 00:10:07 +02:00
parent 855fbaa05f
commit 84682f90fa

View File

@ -27,6 +27,7 @@ from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject, QEvent
import qutebrowser.config.config as config import qutebrowser.config.config as config
import qutebrowser.commands.utils as cmdutils import qutebrowser.commands.utils as cmdutils
import qutebrowser.utils.debug as debug
manager = None manager = None
@ -181,7 +182,8 @@ class ModeManager(QObject):
if typ not in [QEvent.KeyPress, QEvent.KeyRelease]: if typ not in [QEvent.KeyPress, QEvent.KeyRelease]:
# We're not interested in non-key-events so we pass them through. # We're not interested in non-key-events so we pass them through.
return False 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 # We're currently in a passthrough mode so we pass everything
# through.*and* let the passthrough keyhandler know. # through.*and* let the passthrough keyhandler know.
# FIXME what if we leave the passthrough mode right here? # FIXME what if we leave the passthrough mode right here?