Also log modifiers for key presses

This commit is contained in:
Florian Bruhin 2018-03-05 19:32:21 +01:00
parent fb626ca5a8
commit 2ab270dfac

View File

@ -131,8 +131,9 @@ class BaseKeyParser(QObject):
"""
key = e.key()
txt = str(keyutils.KeyInfo.from_event(e))
self._debug_log("Got key: 0x{:x} / text: '{}' / dry_run {}".format(
key, txt, dry_run))
self._debug_log("Got key: 0x{:x} / modifiers: 0x{:x} / text: '{}' / "
"dry_run {}".format(key, int(e.modifiers()), txt,
dry_run))
if keyutils.is_modifier_key(key):
self._debug_log("Ignoring, only modifier")