Skip to content

Commit

Permalink
Handle back button in QML sources screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Oct 31, 2020
1 parent 08e21e2 commit abc50e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui-qml/src/components/SourcesScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,11 @@ Page {
}
}
}

Keys.onReleased: {
if (event.key === Qt.Key_Back || event.key === Qt.Key_Escape) {
root.rejected()
event.accepted = true
}
}
}

0 comments on commit abc50e2

Please sign in to comment.