Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
2a7db762
Commit
2a7db762
authored
Nov 12, 2021
by
Claudio Cambra
Browse files
Can now press enter when delete dialog open to quickly delete
parent
daee5a60
Pipeline
#96905
canceled with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/contents/ui/DeleteCalendarSheet.qml
View file @
2a7db762
...
...
@@ -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
...
...
src/contents/ui/DeleteIncidenceSheet.qml
View file @
2a7db762
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment