onRudderChanged: {if(drone.confUseJoyStick) drone.yaw=rudder;}
}
+ Keys.onPressed: {
+ console.debug("QML:Keys.onPressed",event.key)
+ if (event.key == Qt.Key_TopMenu)
+ console.debug("QML: opening menu!")
+ else if (event.key == Qt.Key_Close) {
+ console.debug("QML: closing! (maybe)")
+ pageStack.depth <= 1 ? Qt.quit() : pageStack.pop()
+ }
+ }
+
+ function backKey() {
+ console.debug("QML: backKey")
+ pageStack.depth <= 1 ? Qt.quit() : pageStack.pop()
+ }
Component {
id: mainpageComponent