Losing script tree focus on script selection (disallowed walking tree with keyboard up/down)

This commit is contained in:
Jindra Petřík
2021-01-23 20:37:57 +01:00
parent 21f6c0112f
commit 422e9d32fe
3 changed files with 10 additions and 5 deletions

View File

@@ -1393,8 +1393,9 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
detailPanel.setVisible(!val);
decompiledTextArea.ignoreCarret = val;
//This prevents walking script tree with up and down:
//decompiledTextArea.requestFocusInWindow();
if (val) {
decompiledTextArea.requestFocusInWindow();
}
}
private void editDecompiledButtonActionPerformed(ActionEvent evt) {