Add test case for is_special in keyutils
This commit is contained in:
parent
991ba54499
commit
0645865d22
@ -518,6 +518,8 @@ def test_is_printable(key, printable):
|
|||||||
(Qt.Key_Escape, Qt.ControlModifier, True),
|
(Qt.Key_Escape, Qt.ControlModifier, True),
|
||||||
(Qt.Key_X, Qt.ControlModifier, True),
|
(Qt.Key_X, Qt.ControlModifier, True),
|
||||||
(Qt.Key_X, Qt.NoModifier, False),
|
(Qt.Key_X, Qt.NoModifier, False),
|
||||||
|
(Qt.Key_2, Qt.KeypadModifier, False),
|
||||||
|
(Qt.Key_2, Qt.NoModifier, False),
|
||||||
])
|
])
|
||||||
def test_is_special(key, modifiers, special):
|
def test_is_special(key, modifiers, special):
|
||||||
assert keyutils.is_special(key, modifiers) == special
|
assert keyutils.is_special(key, modifiers) == special
|
||||||
|
Loading…
Reference in New Issue
Block a user