Also log modifiers for key presses
This commit is contained in:
parent
fb626ca5a8
commit
2ab270dfac
@ -131,8 +131,9 @@ class BaseKeyParser(QObject):
|
|||||||
"""
|
"""
|
||||||
key = e.key()
|
key = e.key()
|
||||||
txt = str(keyutils.KeyInfo.from_event(e))
|
txt = str(keyutils.KeyInfo.from_event(e))
|
||||||
self._debug_log("Got key: 0x{:x} / text: '{}' / dry_run {}".format(
|
self._debug_log("Got key: 0x{:x} / modifiers: 0x{:x} / text: '{}' / "
|
||||||
key, txt, dry_run))
|
"dry_run {}".format(key, int(e.modifiers()), txt,
|
||||||
|
dry_run))
|
||||||
|
|
||||||
if keyutils.is_modifier_key(key):
|
if keyutils.is_modifier_key(key):
|
||||||
self._debug_log("Ignoring, only modifier")
|
self._debug_log("Ignoring, only modifier")
|
||||||
|
Loading…
Reference in New Issue
Block a user