From 98a68c82bcdcbe10031596fcc1daa8c13a08a0ea Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 7 Sep 2019 19:37:43 +0200 Subject: [PATCH] GItemView: Make Ctrl+click toggle item selection on/off --- Libraries/LibGUI/GItemView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGUI/GItemView.cpp b/Libraries/LibGUI/GItemView.cpp index ac24cd2d8f..a0db29db73 100644 --- a/Libraries/LibGUI/GItemView.cpp +++ b/Libraries/LibGUI/GItemView.cpp @@ -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;