Skip to content

Commit 3788792

Browse files
Canvas: listen for command/control in selection.
1 parent 5f861d0 commit 3788792

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/phasereditor/phasereditor.canvas.ui/src/phasereditor/canvas/ui/editors/behaviors/MouseBehavior.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private void handleMouseDragged(MouseEvent e) {
169169
_zoomPan.handleMouseDragged(e);
170170
return;
171171
}
172-
172+
173173
if (e.isPrimaryButtonDown()) {
174174

175175
if (_dragHandler != null) {

source/phasereditor/phasereditor.canvas.ui/src/phasereditor/canvas/ui/editors/behaviors/SelectionBehavior.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ void handleMouseReleased(MouseEvent e) {
143143
}
144144

145145
if (isSelected(picked)) {
146-
if (e.isControlDown()) {
146+
if (e.isShortcutDown()) {
147147
removeNodeFromSelection(picked);
148148
}
149149
return;
150150
}
151151

152-
if (_selection != null && !_selection.isEmpty() && e.isControlDown()) {
152+
if (_selection != null && !_selection.isEmpty() && e.isShortcutDown()) {
153153
HashSet<Object> selection = new HashSet<>(Arrays.asList(_selection.toArray()));
154154
selection.add(picked);
155155
setSelection(new StructuredSelection(selection.toArray()));

0 commit comments

Comments
 (0)