diff --git a/src/OptionsPopup.qml b/src/OptionsPopup.qml index 910b4e1..4693cf2 100644 --- a/src/OptionsPopup.qml +++ b/src/OptionsPopup.qml @@ -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