From ab6d065cb063f33fba6c7cb699b9b7350239b182 Mon Sep 17 00:00:00 2001 From: xiepengfei Date: Thu, 5 Feb 2026 10:20:23 +0800 Subject: [PATCH] fix: Fixed issue where the focus did not start from the current page when entering the secondary interface Fixed issue where the focus did not start from the current page when entering the secondary interface Log: Fixed issue where the focus did not start from the current page when entering the secondary interface pms: BUG-311355 --- src/dde-control-center/plugin/DccItem.qml | 2 +- src/dde-control-center/plugin/SecondPage.qml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dde-control-center/plugin/DccItem.qml b/src/dde-control-center/plugin/DccItem.qml index 3648e84a80..1180b11a4f 100644 --- a/src/dde-control-center/plugin/DccItem.qml +++ b/src/dde-control-center/plugin/DccItem.qml @@ -21,7 +21,7 @@ D.ItemDelegate { implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding padding: 0 font: D.DTK.fontManager.t6 - activeFocusOnTab: true + activeFocusOnTab: false contentItem: DccLoader { dccObj: model.item diff --git a/src/dde-control-center/plugin/SecondPage.qml b/src/dde-control-center/plugin/SecondPage.qml index bbf7392b99..23cdf61b3e 100644 --- a/src/dde-control-center/plugin/SecondPage.qml +++ b/src/dde-control-center/plugin/SecondPage.qml @@ -300,6 +300,9 @@ Item { rightView.replace(mainView, { "dccObj": activeObj }, DccApp.animationMode === DccApp.AnimationPush ? StackView.PushTransition : StackView.PopTransition) + if (activeObj.name !== "system") { + list.forceActiveFocus() + } } Connections { target: DccApp