on xenial help sign in
check for released keys, not pressed ones
76a95beMichael Zanetti
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+1−1
@@ -176,7 +176,7 @@ Item {
176 // release them both, both are supposed to end up in the app
176 // release them both, both are supposed to end up in the app
177 keyRelease(Qt.Key_F, Qt.NoModifier);
177 keyRelease(Qt.Key_F, Qt.NoModifier);
178 keyRelease(Qt.Key_Alt, Qt.NoModifier);
178 keyRelease(Qt.Key_Alt, Qt.NoModifier);
179− compare(inputCatcher.pressedKeys.length, 2);
179+ compare(inputCatcher.releasedKeys.length, 2);
180 }
180 }
181 }
181 }
182}
182}