Parcourir la source

Quit when escape is pressed

Change-Id: Idf13869ff59ddd8660d776eda2d579149c814ab4
Donald Carr il y a 8 ans
Parent
commit
0010f31719
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      qml/main.qml

+ 1 - 0
qml/main.qml

@@ -157,6 +157,7 @@ Window {
         focus: true
         Keys.onLeftPressed: globalSettings.columnCount = Math.max(globalSettings.columnCount-1,1)
         Keys.onRightPressed: globalSettings.columnCount++
+        Keys.onEscapePressed: Qt.quit()
     }
 
     Rectangle {