Files
Files copied to clipboard
Bug: Right click doesn't always select the file/folder hovered over
Description
When I right click a file/folder it should select then bring up the menu. It does it very inconsistently right now.
Steps To Reproduce
- Right click on different files/folders
- Observe that the item you right click on doesn't always get selected
Requirements
- File/folder should always be selected
Files Version
2.3.11.0
Windows Version
10.0.19043.1889
Relevant Assets/Logs
just a random thought, but perhaps the simplest solution here is to apply a "click" action at the mouse pointer location before triggering the context menu action..?
FWIW: I keep getting caught out by a similar scenario, which this would also fix.. moving files up one level in the directory tree:
- enter
/path/to/folder - select
nfiles - right click on selection > cut
- navigate "up"
- right click on background > paste
- ..and the files are still where they started
being triggered on the folder background, if the right click action deselected the folder I just navigated out of, then the files would have moved to where I expect them to go. currently I need to explicitly deselect the folder I just navigated out of first.
this same change would most likely resolve this issue as well..
@ZaLiTHkA we ended up solving this by moving the right click event to the ItemContainer. It appears that having the event on the actual item is unreliable due to the extra padding around the item.