Page 1 of 1
Ctrl-click in list view working incorrectly
Posted: 26 Sep 2007 17:56
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.
Re: Ctrl-click in list view working incorrectly
Posted: 26 Sep 2007 19:19
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.
Re: Ctrl-click in list view working incorrectly
Posted: 26 Sep 2007 19:44
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...
Posted: 26 Sep 2007 20:24
by Statler
I reported this because the behavior is inconsistent with Windows Explorer.

Posted: 26 Sep 2007 20:39
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...

Posted: 26 Sep 2007 21:18
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...
