check for released keys, not pressed ones
commit76a95be5980d661cbc5bcf0b98c2aafe44f0ecc8
authorMichael Zanetti <michael.zanetti@canonical.com>
dateFri 15 Jan 2016, 11:21 (11 years ago)
parente8c058e
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+1−1
@@ -176,7 +176,7 @@ Item {
176176 // release them both, both are supposed to end up in the app
177177 keyRelease(Qt.Key_F, Qt.NoModifier);
178178 keyRelease(Qt.Key_Alt, Qt.NoModifier);
179− compare(inputCatcher.pressedKeys.length, 2);
179+ compare(inputCatcher.releasedKeys.length, 2);
180180 }
181181 }
182182}