fix(filemanager): preserve desktop selection for context menus

main
reionwong 3 weeks ago
parent 835d5962d0
commit 7296204c4b

@ -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()
}

Loading…
Cancel
Save