Files icon indicating copy to clipboard operation
Files copied to clipboard

Bug: Right click doesn't always select the file/folder hovered over

Open Josh65-2201 opened this issue 3 years ago • 1 comments

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

  1. Right click on different files/folders
  2. 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

Josh65-2201 avatar Aug 28 '22 16:08 Josh65-2201

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 n files
  • 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 avatar Aug 29 '22 06:08 ZaLiTHkA

@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.

yaira2 avatar Sep 29 '22 16:09 yaira2