do not clear selection when clicking on empty space while Ctrl key is pressed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user