diff --git a/Modules/Notifications/Center/NotificationKeyboardController.qml b/Modules/Notifications/Center/NotificationKeyboardController.qml index 1950988c..03e8fe29 100644 --- a/Modules/Notifications/Center/NotificationKeyboardController.qml +++ b/Modules/Notifications/Center/NotificationKeyboardController.qml @@ -390,6 +390,23 @@ QtObject { } function handleKey(event) { + if ((event.key === Qt.Key_Delete || event.key === Qt.Key_Backspace) && (event.modifiers & Qt.ShiftModifier)) { + NotificationService.clearAllNotifications() + rebuildFlatNavigation() + if (flatNavigation.length === 0) { + keyboardNavigationActive = false + if (listView) { + listView.keyboardActive = false + } + } else { + selectedFlatIndex = 0 + updateSelectedIdFromIndex() + } + selectionVersion++ + event.accepted = true + return + } + if (event.key === Qt.Key_Escape) { if (keyboardNavigationActive) { keyboardNavigationActive = false diff --git a/Modules/Notifications/Center/NotificationKeyboardHints.qml b/Modules/Notifications/Center/NotificationKeyboardHints.qml index a528602f..a33cf3bf 100644 --- a/Modules/Notifications/Center/NotificationKeyboardHints.qml +++ b/Modules/Notifications/Center/NotificationKeyboardHints.qml @@ -34,7 +34,7 @@ Rectangle { } StyledText { - text: "Del: Clear • 1-9: Actions • ?: Help • Esc: Close" + text: "Del: Clear • Shift+Del: Clear All • 1-9: Actions • ?: Help • Esc: Close" font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceText anchors.horizontalCenter: parent.horizontalCenter