Ctrl-click in list view working incorrectly

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Ctrl-click in list view working incorrectly

Post by Statler »

I try to select some random files in a folder using ctrl-click. When I hold down the control button and click on a random file, a dotted border is drawn around the first file in the list, but none is selected. It should select the file clicked - no matter if I hold ctrl or not.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Ctrl-click in list view working incorrectly

Post by jacky »

Statler wrote:I try to select some random files in a folder using ctrl-click. When I hold down the control button and click on a random file, a dotted border is drawn around the first file in the list, but none is selected. It should select the file clicked - no matter if I hold ctrl or not.
Ctrl+Selection actually works, but if focus was not on List then yes, the first click is "eaten" and only gives focus.

Advantage: When you have a multi-selection, and the focus isn't on List, clicking it will only bring focus, but not loose your selection.
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Ctrl-click in list view working incorrectly

Post by admin »

Statler wrote:I try to select some random files in a folder using ctrl-click. When I hold down the control button and click on a random file, a dotted border is drawn around the first file in the list, but none is selected. It should select the file clicked - no matter if I hold ctrl or not.
The first file is by default the focused file on a fresh list.

See jacky's answer...

Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Post by Statler »

I reported this because the behavior is inconsistent with Windows Explorer. :(

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Statler wrote:I reported this because the behavior is inconsistent with Windows Explorer. :(
Yes: I noted that Explorer does not set the focus to the control until the mouse is released when CTRL is held. This is a curious trick that I cannot emulate.

But I'll try to come closer to it... :)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

admin wrote:But I'll try to come closer to it... :)
Done! And I made it a little better than Explorer:

Code: Select all

    * List: Now, when CTRL is held, the focus is set *immediately* to 
      the clicked item on MouseDown. As before, on releasing the mouse 
      button (MouseUp), the selection state is toggled.
      Note that this works also if the List itself receives the focus 
      through this click.
Why is it better? Because you get immediate visual feedback about which item you have clicked. In Explorer you'll only find out on MouseUp.

:)

PS: I'll be gone till sunday... patience... :)

Post Reply