Commit 91b6172c authored by legoc's avatar legoc
Browse files

Changed updateFocus to improve the selection feature

parent 33919d78
......@@ -2520,22 +2520,22 @@ public class EditorMenuBar extends MenuBar {
}
});
MenuItem onlySelectionItem = new MenuItem("Show Only Selection");
MenuItem onlySelectionItem = new MenuItem("Hide Non Selection");
onlySelectionItem.setAccelerator(new KeyCodeCombination(KeyCode.S));
onlySelectionItem.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
showType = Component.ShowType.SELECTION;
showType = Component.ShowType.HIDE_NON_SELECTION;
updateFocus();
}
});
MenuItem hideSelectionItem = new MenuItem("Show Only Non Selection");
MenuItem hideSelectionItem = new MenuItem("Hide Selection");
hideSelectionItem.setAccelerator(new KeyCodeCombination(KeyCode.Q));
hideSelectionItem.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
showType = Component.ShowType.NON_SELECTION;
showType = Component.ShowType.HIDE_SELECTION;
updateFocus();
}
});
......
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