Since Qt::KeypadModifier is set only for keypad keys and not the NumLock
key, we need to press at least one keypad key to determine whether
numlock is actually on. On the other hand, we know that when numlock is
on, the corresponding LED is also on. So we could check the LED rather
than press two keys.
Details
Details
- Reviewers
davidedmundson - Group Reviewers
KWin - Commits
- R108:5d580b9fb2ee: [autotests] Fix failing KeyboardLayoutTest::testNumLock()
testKeyboardLayout passes.
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.