Commit 2a7db762 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Can now press enter when delete dialog open to quickly delete

parent daee5a60
Pipeline #96905 canceled with stage
......@@ -21,6 +21,15 @@ Kirigami.Page {
title: collectionId ? i18n("Delete calendar") : i18n("Delete")
QQC2.Action {
id: deleteAction
enabled: collectionId !== undefined
shortcut: "Return"
onTriggered: {
deleteCollection(deleteSheet.collectionId);
}
}
ColumnLayout {
anchors.fill: parent
......
......@@ -27,6 +27,17 @@ Kirigami.Page {
i18nc("%1 is the type of the incidence (e.g event, todo, journal entry)", "Delete %1", incidenceWrapper.incidenceTypeStr) :
i18n("Delete")
QQC2.Action {
id: deleteAction
enabled: incidenceWrapper !== undefined
shortcut: "Return"
onTriggered: {
incidenceWrapper.recurrenceData.type > 0 ?
addException(deleteDate, incidenceWrapper) :
deleteIncidence(incidenceWrapper.incidencePtr);
}
}
ColumnLayout {
anchors.fill: parent
......
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