@@ -68,7 +68,7 @@ Item {
69 function onKeyPressed(event) {
69 function onKeyPressed(event) {
70 if ((event.key == Qt.Key_PowerDown || event.key == Qt.Key_PowerOff)
70 if ((event.key == Qt.Key_PowerDown || event.key == Qt.Key_PowerOff)
71− && !event.isAutoRepeat) {
71+ && (!event.isAutoRepeat || !powerKeyLongPressTimer.running)) {
73 // FIXME: We only consider power key presses if the screen is
73 // FIXME: We only consider power key presses if the screen is
74 // on because of bugs 1410830/1409003. The theory is that when
74 // on because of bugs 1410830/1409003. The theory is that when