mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
GItemView: Make Ctrl+click toggle item selection on/off
This commit is contained in:
parent
a5e0242992
commit
98a68c82bc
Notes:
sideshowbarker
2024-07-19 12:13:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/98a68c82bcd
@ -76,7 +76,7 @@ void GItemView::mousedown_event(GMouseEvent& event)
|
||||
if (item_rect(i).contains(adjusted_position)) {
|
||||
auto index = model()->index(i, 0);
|
||||
if (event.modifiers() & Mod_Ctrl)
|
||||
selection().add(index);
|
||||
selection().toggle(index);
|
||||
else
|
||||
selection().set(index);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user