mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 06:07:35 +00:00
GItemView: Make Ctrl+click toggle item selection on/off
This commit is contained in:
parent
a5e0242992
commit
98a68c82bc
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ void GItemView::mousedown_event(GMouseEvent& event)
|
||||||
if (item_rect(i).contains(adjusted_position)) {
|
if (item_rect(i).contains(adjusted_position)) {
|
||||||
auto index = model()->index(i, 0);
|
auto index = model()->index(i, 0);
|
||||||
if (event.modifiers() & Mod_Ctrl)
|
if (event.modifiers() & Mod_Ctrl)
|
||||||
selection().add(index);
|
selection().toggle(index);
|
||||||
else
|
else
|
||||||
selection().set(index);
|
selection().set(index);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue