From 6ef1bd886bd544e982f58ac2b7199ec82dadde0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 1 Mar 2021 08:40:54 +0100 Subject: [PATCH] Fixed: #1634 AS3 slot/const editor loses focus on edit button press --- CHANGELOG.md | 1 + .../decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f621451a..1ea283481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java index 9f3e34c34..4e074536f 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java @@ -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;