mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Merge pull request #687 from cillian64/esc
Make escape key close OS customisation window
This commit is contained in:
commit
952aea3454
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue