Skip to content
Snippets Groups Projects
Commit 9b707786 authored by Johannes Eder's avatar Johannes Eder
Browse files

changed multi select to ctrl+left click

parent a589edc7
No related branches found
No related tags found
1 merge request!983967
...@@ -377,8 +377,8 @@ public class DiagramViewer { ...@@ -377,8 +377,8 @@ public class DiagramViewer {
} }
/** Interprets the effect of shift-clicking the given {@link IMVCBundle}. */ /** Interprets the effect of shift-clicking the given {@link IMVCBundle}. */
public void handleShiftSelectionOf(IMVCBundle sel) { public void handleCtrlSelectionOf(IMVCBundle sel) {
viewerManager.handleShiftSelectionOf(sel); viewerManager.handleCtrlSelectionOf(sel);
} }
/** /**
......
...@@ -605,7 +605,7 @@ import org.fortiss.tooling.common.ui.javafx.lwfxef.visual.IVisualFactory; ...@@ -605,7 +605,7 @@ import org.fortiss.tooling.common.ui.javafx.lwfxef.visual.IVisualFactory;
} }
/** Performs shift selection of the given bundle. */ /** Performs shift selection of the given bundle. */
public void handleShiftSelectionOf(IMVCBundle sel) { public void handleCtrlSelectionOf(IMVCBundle sel) {
if(primarySelectedBundle == sel || secondarySelectedBundles.contains(sel)) { if(primarySelectedBundle == sel || secondarySelectedBundles.contains(sel)) {
removeSelectedMVCBundle(sel); removeSelectedMVCBundle(sel);
} else { } else {
......
...@@ -75,8 +75,8 @@ public abstract class ControllerBase extends MVCBundlePartBase implements IContr ...@@ -75,8 +75,8 @@ public abstract class ControllerBase extends MVCBundlePartBase implements IContr
if(!selectOnClick()) { if(!selectOnClick()) {
return null; return null;
} }
if(event.isShiftDown()) { if(event.isControlDown()) {
getViewer().handleShiftSelectionOf(getMVCBundle()); getViewer().handleCtrlSelectionOf(getMVCBundle());
} else { } else {
getViewer().setSingleSelectedMVCBundle(getMVCBundle()); getViewer().setSingleSelectedMVCBundle(getMVCBundle());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment