From 35212998b5b932454ad8143d0981d2b6aa7a40d9 Mon Sep 17 00:00:00 2001 From: taxin <186607085+taxin-404@users.noreply.github.com> Date: Thu, 30 Jul 2026 05:17:09 +0600 Subject: [PATCH] feat(notifications): add right-click to dismiss popup (#6400) Add right-click handling to the notification card MouseArea so users can manually dismiss notifications by right-clicking on them. Previously, only left-click was handled (which triggered the default action). Now right-click emits closeRequested() to dismiss the popup. Co-authored-by: taxin --- .../notifications/components/NotificationCard.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shell/plugins/notifications/components/NotificationCard.qml b/shell/plugins/notifications/components/NotificationCard.qml index f76590f1..70c5b88d 100644 --- a/shell/plugins/notifications/components/NotificationCard.qml +++ b/shell/plugins/notifications/components/NotificationCard.qml @@ -77,7 +77,14 @@ BorderSurface { MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onClicked: root.cardClicked() + acceptedButtons: Qt.LeftButton | Qt.RightButton + onClicked: function(mouse) { + if (mouse.button === Qt.RightButton) { + root.closeRequested() + } else { + root.cardClicked() + } + } } ColumnLayout {