summaryrefslogtreecommitdiff
path: root/extra/kdebase/fix-controlclick-selection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/kdebase/fix-controlclick-selection.patch')
-rw-r--r--extra/kdebase/fix-controlclick-selection.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/kdebase/fix-controlclick-selection.patch b/extra/kdebase/fix-controlclick-selection.patch
new file mode 100644
index 000000000..a51161326
--- /dev/null
+++ b/extra/kdebase/fix-controlclick-selection.patch
@@ -0,0 +1,11 @@
+--- a/dolphin/src/kitemviews/kitemlistcontroller.cpp
++++ b/dolphin/src/kitemviews/kitemlistcontroller.cpp
+@@ -471,7 +471,7 @@ bool KItemListController::mousePressEven
+ (!shiftOrControlPressed && !pressedItemAlreadySelected);
+ if (clearSelection) {
+ m_selectionManager->clearSelection();
+- } else if (pressedItemAlreadySelected && (event->buttons() & Qt::LeftButton)) {
++ } else if (pressedItemAlreadySelected && !shiftOrControlPressed && (event->buttons() & Qt::LeftButton)) {
+ // The user might want to start dragging multiple items, but if he clicks the item
+ // in order to trigger it instead, the other selected items must be deselected.
+ // However, we do not know yet what the user is going to do.