Fix capital chars after string change

This commit is contained in:
Florian Bruhin 2018-02-26 11:48:10 +01:00
parent 508a12a84c
commit 0afaf2ce89

View File

@ -125,7 +125,7 @@ class BaseKeyParser(QObject):
txt = keyutils.keyevent_to_string(e) txt = keyutils.keyevent_to_string(e)
self._debug_log("Got key: 0x{:x} / text: '{}'".format(key, txt)) self._debug_log("Got key: 0x{:x} / text: '{}'".format(key, txt))
if txt is None: if not txt:
self._debug_log("Ignoring, no text char") self._debug_log("Ignoring, no text char")
return QKeySequence.NoMatch return QKeySequence.NoMatch