From e0c54dfb070de9a0b694b9cf567e100178c76943 Mon Sep 17 00:00:00 2001 From: Wang Zichong Date: Fri, 24 Oct 2025 10:13:37 +0800 Subject: [PATCH] fix: avoid keyboard focus on menu that not visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免键盘焦点选中不可见的菜单项。 PMS: BUG-338173 Log: --- qml/AppItemMenu.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qml/AppItemMenu.qml b/qml/AppItemMenu.qml index 198ab008..52cdf208 100644 --- a/qml/AppItemMenu.qml +++ b/qml/AppItemMenu.qml @@ -61,6 +61,7 @@ Loader { MenuItem { id: moveToTopMenu visible: !hideMoveToTopMenu + enabled: visible height: visible ? implicitHeight : 0 text: qsTr("Move to Top") onTriggered: { @@ -140,7 +141,7 @@ Loader { LauncherController.setAvoidHide(true) LauncherController.visible = false } else { - LauncherController.setAvoidHide(false) + LauncherController.setAvoidHide(false) } if (!DesktopIntegration.shouldSkipConfirmUninstallDialog(root.desktopId)) { confirmUninstallDlg.appName = root.display