Gui/Sketcher: disable geometry deselection when user holds Ctrl or additionally Shift or Alt
This commit is contained in:
@@ -1480,8 +1480,9 @@ SbBool NavigationStyle::processEvent(const SoEvent * const ev)
|
||||
if ((curmode == NavigationStyle::SELECTION || curmode == NavigationStyle::IDLE)
|
||||
&& !processed) {
|
||||
if (SoMouseButtonEvent::isButtonReleaseEvent(ev, SoMouseButtonEvent::BUTTON1)) {
|
||||
if (!(QApplication::keyboardModifiers() == Qt::ControlModifier))
|
||||
if (!ev->wasCtrlDown()) {
|
||||
Gui::Selection().clearSelection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -891,8 +891,9 @@ bool ViewProviderSketch::mouseButtonPressed(int Button, bool pressed, const SbVe
|
||||
Mode = STATUS_NONE;
|
||||
return true;
|
||||
case STATUS_SKETCH_StartRubberBand: // a single click happened, so clear selection unless user hold control.
|
||||
if (!(QApplication::keyboardModifiers() == Qt::ControlModifier))
|
||||
if (!(QApplication::keyboardModifiers() & Qt::ControlModifier)) {
|
||||
Gui::Selection().clearSelection();
|
||||
}
|
||||
Mode = STATUS_NONE;
|
||||
return true;
|
||||
case STATUS_SKETCH_UseRubberBand:
|
||||
|
||||
Reference in New Issue
Block a user