@@ -84,6 +84,10 @@ TestCase {
84 physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 600);
84 physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 600);
86 compare(powerSpy.count, 1);
86 compare(powerSpy.count, 1);
88+ // Confirm we only emit once
89+ physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 601);
90+ compare(powerSpy.count, 1);
89 function test_screenshotButtons_data() {
93 function test_screenshotButtons_data() {