Keep focus on collapsed folder

When my selection is inside an expanded folder and then I collapse that folder, I expect dopus to keep focus on the collapsed folder instead of shifting focus to the next folder.

This doesn't seem like a very good idea to me. The focus rectangle wouldn't be visible so you'd have no way of knowing which item actually had focus. It would be very easy to delete the wrong thing that way.

1 Like

I still don't get it, in my video if I click on a folder and then click on background, the rectangle stays focused on the same folder, but if I select something inside an expanded folder and then I click the collapse arrow, the rectangle jumps to the next folder. Why is this related to deleting the wrong thing?

Just set the focus to the current row when the folder is collapsed?
(Sometimes I need a command to change the focus without scrolling, such as: Select Test.txt SETFOCUS=noscroll DESELECT)

Maybe I'm using the term wrong, what I meant by "keep focused" was this one (the rectangle):

2024-12-07_172659