From 5182a2614405c4b1e4856aeaacd9a1146764e817 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Thu, 26 Dec 2024 02:24:20 -0800 Subject: [PATCH] only clear selection if ctrl isn't held --- cockatrice/src/game/zones/select_zone.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/game/zones/select_zone.cpp b/cockatrice/src/game/zones/select_zone.cpp index 4cf3f349f..949b3fba2 100644 --- a/cockatrice/src/game/zones/select_zone.cpp +++ b/cockatrice/src/game/zones/select_zone.cpp @@ -83,7 +83,9 @@ void SelectZone::mouseMoveEvent(QGraphicsSceneMouseEvent *event) void SelectZone::mousePressEvent(QGraphicsSceneMouseEvent *event) { if (event->button() == Qt::LeftButton) { - scene()->clearSelection(); + if (!event->modifiers().testFlag(Qt::ControlModifier)) { + scene()->clearSelection(); + } selectionOrigin = event->pos(); static_cast(scene())->startRubberBand(event->scenePos());