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

@@ -12,7 +12,7 @@ All notable changes to this project will be documented in this file.
- AS3: Incorrect handling of strict equals operator in if vs switch resulting in §§pop
- Better goto detection/for continue
- Support for comma operator in switch case statements
- AS3: Losing script tree focus on script selection (disallowed walking tree with keyboard up/down)
- Losing script tree focus on script selection (disallowed walking tree with keyboard up/down)
- Proper window screen centering
- Graph dialog proper window size
- Graph dialog scroll speed increased

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) {

View File

@@ -933,7 +933,9 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
asmLabel.setIcon(val ? View.getIcon("editing16") : null); // this line is not working
topButtonsPan.setVisible(!val);
editMode = val;
editor.requestFocusInWindow();
if (val) {
editor.requestFocusInWindow();
}
}
public void setDecompiledEditMode(boolean val) {
@@ -968,7 +970,9 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
decompiledEditor.getCaret().setVisible(true);
decLabel.setIcon(val ? View.getIcon("editing16") : null);
editDecompiledMode = val;
decompiledEditor.requestFocusInWindow();
if (val) {
decompiledEditor.requestFocusInWindow();
}
}
private void graphButtonActionPerformed(ActionEvent evt) {