Skip to content

Commit

Permalink
android: catch the key sequence page up, returned by the callback
Browse files Browse the repository at this point in the history
  • Loading branch information
janbar committed Sep 16, 2024
1 parent ecf01e2 commit b0e5619
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions gui/controls2_640/osmin.qml
Original file line number Diff line number Diff line change
Expand Up @@ -367,25 +367,10 @@ ApplicationWindow {
onTriggered: keyBackPressed()
}

// On android catch the signal 'closing'
onClosing: function(close) {
// if (Android) {
// close.accepted = false;
// if (stackView.depth > 1) {
// if (stackView.currentItem.isRoot)
// stackView.pop();
// else
// stackView.currentItem.goUpClicked();
// } else {
// // don't trigger any op synchronously
// postponeKeyBackPressed.start();
// }
// }
}

// On desktop catch the key 'ESC'
// On android catch the key PgUp, which is returned by the callback
// On other platform catch the standard key 'ESC'
Shortcut {
sequences: ["Esc"]
sequences: ["Esc", StandardKey.MoveToPreviousPage]
onActivated: {
if (stackView.depth > 1) {
if (stackView.currentItem.isRoot)
Expand Down

0 comments on commit b0e5619

Please sign in to comment.