From 501327d2c57f3a15a2156f7efdc65f3462cb04c5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 4 Sep 2017 22:51:22 +0200 Subject: [PATCH] do not clear selection when clicking on empty space while Ctrl key is pressed --- src/Gui/SoFCUnifiedSelection.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index 87321a05c5..888c0dbfea 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -539,6 +539,15 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) this->touch(); } } // picked point + else if (!pp) { + // user clicked onto empty space but in case Ctrl key was pressed + // then mark the action as handled to avoid that the navigation style + // processes the action and clears the selection + if (event->wasCtrlDown()) { + action->setHandled(); + } + + } } // mouse release }