From 9c4d6370023d05aa4034effc5ba58303082076b3 Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Tue, 6 Jan 2026 14:55:45 +0800 Subject: [PATCH] fix: ensure focus before expand in OverlapNotify - Added forceActiveFocus() call before expand to fix Tab navigation starting from wrong position after mouse click expand. Log: ensure focus before expand in OverlapNotify pms: BUG-339891 --- panels/notification/center/OverlapNotify.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panels/notification/center/OverlapNotify.qml b/panels/notification/center/OverlapNotify.qml index 228dc73ce..00fc0f1eb 100644 --- a/panels/notification/center/OverlapNotify.qml +++ b/panels/notification/center/OverlapNotify.qml @@ -105,7 +105,10 @@ NotifyItem { TapHandler { enabled: !root.enableDismissed acceptedButtons: Qt.LeftButton - onTapped: root.expand() + onTapped: { + root.forceActiveFocus() + root.expand() + } } Keys.onEnterPressed: root.expand() Keys.onReturnPressed: root.expand()