Fixed: #1634 AS3 slot/const editor loses focus on edit button press

This commit is contained in:
Jindra Petřík
2021-03-01 08:40:54 +01:00
parent 3ec8ab1f91
commit 6ef1bd886b
2 changed files with 4 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file.
- #1603 empty script after search selection
- Generic tag tree exception on save
- Copying to clipboard does not support transparency
- #1634 AS3 slot/const editor loses focus on edit button press
### Removed
- #1631 ActiveX Flash component download in windows installer

View File

@@ -134,6 +134,9 @@ public class SlotConstTraitDetailPanel extends JPanel implements TraitDetail {
View.showMessageDialog(null, AppStrings.translate("warning.initializers"), AppStrings.translate("message.warning"), JOptionPane.WARNING_MESSAGE, Configuration.warningInitializers);
}
slotConstEditor.setEditable(val);
if (val) {
slotConstEditor.requestFocusInWindow();
}
}
private boolean active = false;