Comment 2 for bug 90069

Revision history for this message
kko (kko) wrote : Re: "Shift+click" _de-selects_ files in KDE "Open file" -dialog and Konqueror

My original examples contain a mistake. Instead of that, I would prefer the following:

"Shift+click" always requires (at least) two clicks to define the range. If the first item clicked on gets unselected, so does the entire range. And if the first item clicked on gets selected, this is similarly done for the entire range indicated by the last click. Releasing "shift" should confirm the selection. (Selections outside the range should not be affected.)

The tricky part in implementing this is, if we have a range with both selected and unselected files, over which we operate. If "shift" is kept pressed for the duration of the process, no matter how many times we click, only the range between the _first_ and the _last_ click should be selected.

Ideally, this would mean that the pre-existing selections should be remembered. So, to illustrate: if we accidentally first select a larger area than intended (but don't release "shift"), we can alter the selection to contain a smaller area, and the selections outside this area should be reverted back to what they were before our "shift+click" procedure.