Merge pull request #687 from cillian64/esc

Make escape key close OS customisation window
This commit is contained in:
maxnet 2023-10-18 19:49:59 +02:00 committed by GitHub
commit 952aea3454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,12 @@ Window {
spacing: 10 spacing: 10
anchors.fill: parent anchors.fill: parent
// Keys handlers can only be attached to Items. Window is not an
// Item, but ColumnLayout is, so put this handler here.
Keys.onEscapePressed: {
popup.close()
}
ScrollView { ScrollView {
id: popupbody id: popupbody
font.family: roboto.name font.family: roboto.name