do not clear selection when clicking on empty space while Ctrl key is pressed

This commit is contained in:
wmayer
2017-09-04 22:51:22 +02:00
parent 13b3abef35
commit 501327d2c5

View File

@@ -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
}