Merge pull request #738 from teyrana/fix/699-select-sustainer

[fixes #699] pre-select first AxialStage on Rocket-Open
This commit is contained in:
Daniel Williams 2020-08-08 18:27:05 -04:00 committed by GitHub
commit 73bd52fde9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,6 +282,9 @@ public class BasicFrame extends JFrame {
tree = new ComponentTree(document);
tree.setSelectionModel(componentSelectionModel);
if( tree.isSelectionEmpty() ){
tree.setSelectionRow(1);
}
// Remove JTree key events that interfere with menu accelerators
InputMap im = SwingUtilities.getUIInputMap(tree, JComponent.WHEN_FOCUSED);