mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Make escape key close OS customisation window
With the move from OS customisation being a popup to being a separate window, it is no longer closed by the escape key. Add a handler to restore this behaviour.
This commit is contained in:
parent
8a3331f613
commit
04a9b0d4ad
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,12 @@ Window {
|
|||
spacing: 10
|
||||
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 {
|
||||
id: popupbody
|
||||
font.family: roboto.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue