Fix unicodedata check
This commit is contained in:
parent
f15e2285ba
commit
2698b8bb63
@ -356,8 +356,9 @@ class KeySequence:
|
|||||||
"""
|
"""
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
modifiers = ev.modifiers()
|
modifiers = ev.modifiers()
|
||||||
|
|
||||||
if (modifiers == Qt.ShiftModifier and
|
if (modifiers == Qt.ShiftModifier and
|
||||||
ev.text() and
|
len(ev.text()) == 1 and
|
||||||
unicodedata.category(ev.text()) != 'Lu'):
|
unicodedata.category(ev.text()) != 'Lu'):
|
||||||
modifiers = Qt.KeyboardModifiers()
|
modifiers = Qt.KeyboardModifiers()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user