Commit 8b20a521 authored by legoc's avatar legoc
Browse files

Removed automtic selection mode

parent bca6294f
......@@ -560,41 +560,6 @@ public class Nomad3DEditor extends Application {
subScene.setCursor(new ImageCursor(Nomad3DImporter.createImage("img/translate_cursor.png")));
}
});
// Change the selection mode.
this.scene.setOnKeyPressed(event -> {
// The shortcut is CTRL + Shift + S or D
if (!event.isShiftDown() && !event.isControlDown()) {
return;
}
if (event.getCode() == KeyCode.S) {
Component.selectOn = !Component.selectOn;
if (Component.selectOn && Component.unselectOn) {
Component.unselectOn = false;
}
}
if (event.getCode() == KeyCode.D) {
Component.unselectOn = !Component.unselectOn;
if (Component.selectOn && Component.unselectOn) {
Component.selectOn = false;
}
}
if (Component.selectOn) {
Cursor cursor = new ImageCursor(Nomad3DImporter.createImage("img/select_cursor.png"));
subScene.setCursor(cursor);
}
else if (Component.unselectOn) {
Cursor cursor = new ImageCursor(Nomad3DImporter.createImage("img/unselect_cursor.png"));
subScene.setCursor(cursor);
}
else {
subScene.setCursor(Cursor.DEFAULT);
}
});
subScene.setOnMouseReleased(me -> {
subScene.setCursor(mouseOldCursor);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment