Add test for hints with numberpad numbers
This commit is contained in:
parent
0645865d22
commit
51f9464eb2
@ -96,3 +96,11 @@ class TestHintKeyParser:
|
||||
assert match == QKeySequence.ExactMatch
|
||||
|
||||
keyparser.execute.assert_called_with('follow-hint -s as', None)
|
||||
|
||||
def test_numberkey_hint_match(self, keyparser, fake_keyevent):
|
||||
keyparser.update_bindings(['21', '22'])
|
||||
|
||||
match = keyparser.handle(fake_keyevent(Qt.Key_2, Qt.KeypadModifier))
|
||||
assert match == QKeySequence.PartialMatch
|
||||
match = keyparser.handle(fake_keyevent(Qt.Key_2, Qt.KeypadModifier))
|
||||
assert match == QKeySequence.ExactMatch
|
||||
|
Loading…
Reference in New Issue
Block a user