Created
December 11, 2013 16:33
-
-
Save benmcnelly/7913718 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rectangle { | |
| focus: true | |
| Keys.onReleased: { | |
| if (event.key == Qt.Key_Back) { | |
| console.log("Back button pressed, maybe I should go back instad of exit the app") | |
| // here is where I would call the function that navigates to the previous frame if there was one, and if it at first frame then exit app... | |
| event.accepted = true | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment