From 7296204c4b72db5722e40aed9a6a908b8dce5076 Mon Sep 17 00:00:00 2001 From: reionwong Date: Tue, 1 Sep 2026 08:06:51 -0400 Subject: [PATCH] fix(filemanager): preserve desktop selection for context menus --- qml/Desktop/Main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qml/Desktop/Main.qml b/qml/Desktop/Main.qml index 3fd9855..30f9457 100644 --- a/qml/Desktop/Main.qml +++ b/qml/Desktop/Main.qml @@ -111,7 +111,10 @@ Item { } onActiveFocusChanged: { - if (!activeFocus) { + // The context menu is a separate popup window. Opening it moves + // focus away from the desktop, but the selected item must remain + // selected while the menu builds and handles its actions. + if (!activeFocus && !desktopMenu.visible) { _folderView.cancelRename() dirModel.clearSelection() }