Commit cbc6a92c authored by legoc's avatar legoc
Browse files

Added unselect all

parent 71c1fae6
......@@ -1580,6 +1580,18 @@ public class EditorMenuBar extends MenuBar {
}
});
MenuItem unselectAllItem = new MenuItem("Unselect all");
unselectAllItem.setAccelerator(new KeyCodeCombination(KeyCode.U));
unselectAllItem.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
System.out.println("Unselect all...");
updateScene();
}
});
MenuItem markWallItem = new MenuItem("Mark selection as walls");
markWallItem.setAccelerator(new KeyCodeCombination(KeyCode.W));
markWallItem.setOnAction(new EventHandler<ActionEvent>() {
......@@ -1603,7 +1615,7 @@ public class EditorMenuBar extends MenuBar {
}
});
this.selection.getItems().addAll(allItem, onlySelectionItem, hideSelectionItem, new SeparatorMenuItem(), markWallItem, markPartsItem);
this.selection.getItems().addAll(allItem, onlySelectionItem, hideSelectionItem, unselectAllItem, new SeparatorMenuItem(), markWallItem, markPartsItem);
this.help = new Menu("Help");
MenuItem cameraHelpItem = new MenuItem("Camera");
......
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