Commit a4c6ced6 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Added escape handling to remaining dialog windows

parent 2c968927
Pipeline #106921 passed with stage
in 5 minutes and 25 seconds
......@@ -231,9 +231,10 @@ Kirigami.ScrollablePage {
Kalendar.CalendarManager.addIncidence(incidenceWrapper);
addField.clear();
} else {
QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(collectionPickerSheetComponent, {
const openDialogWindow = QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(collectionPickerSheetComponent, {
incidenceWrapper: incidenceWrapper
});
openDialogWindow.Keys.escapePressed.connect(function() { openDialogWindow.closeDialog() });
}
}
}
......
......@@ -307,6 +307,7 @@ Kirigami.ApplicationWindow {
width: Kirigami.Units.gridUnit * 30,
height: Kirigami.Units.gridUnit * 8
});
openDialogWindow.Keys.escapePressed.connect(function() { openDialogWindow.closeDialog() });
}
function onImportIntoExistingFinished(success, total) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment