From 96b2f00fdaf01fb5d30313a2f976c73d5f39ca8b Mon Sep 17 00:00:00 2001 From: kerry Date: Fri, 21 May 2021 10:00:39 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-52538=20=E7=BB=84=E4=BB=B6=E5=A4=8D?= =?UTF-8?q?=E7=94=A8-=E5=90=88=E5=85=A5=E4=B8=BB=E7=89=88=E6=9C=AC-?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=9A=84=E5=B8=B8=E8=A7=84=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=A4=84=EF=BC=8C=E5=88=87=E6=8D=A2=E7=BB=84=E4=BB=B6=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E6=9F=A5=E7=9C=8B=EF=BC=8C=E4=BA=8B=E4=BB=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=9D=A2=E6=9D=BF=E5=B0=B1=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/gui/controlpane/EventPropertyPane.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java b/designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java index cc3f346690..1cebe463f3 100644 --- a/designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java +++ b/designer-form/src/main/java/com/fr/design/gui/controlpane/EventPropertyPane.java @@ -205,14 +205,14 @@ public class EventPropertyPane extends UIControlPane implements ListControlPaneP nameEdList.setName(text); nameEdList.setSelectionBackground(UIConstants.ATTRIBUTE_PRESS); nameEdList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); - nameEdList.addMouseListener(getHelper().getListMouseListener(nameEdList, this)); nameEdList.addMouseListener(new MouseAdapter() { @Override - public void mouseClicked(MouseEvent e) { + public void mouseReleased(MouseEvent e) { selectNameEdList = nameEdList; updateUINameListSelect(); } }); + nameEdList.addMouseListener(getHelper().getListMouseListener(nameEdList, this)); nameEdList.addModNameActionListener(new ModNameActionListener() { @Override public void nameModed(int index, String oldName, String newName) { @@ -222,7 +222,7 @@ public class EventPropertyPane extends UIControlPane implements ListControlPaneP nameEdList.addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent evt) { // richie:避免多次update和populate大大降低效率 - if (!evt.getValueIsAdjusting() && !isPopulating) { + if (!evt.getValueIsAdjusting()) { // shoc 切换的时候加检验 if (hasInvalid(false)) { return;