Browse Source

REPORT-56080 图表双击无法进入图表编辑页

persist/11.0
kuangshuai 3 years ago
parent
commit
9d81243a42
  1. 4
      designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java

4
designer-form/src/main/java/com/fr/design/designer/beans/models/SelectionModel.java

@ -85,7 +85,9 @@ public class SelectionModel {
if (e.getButton() == MouseEvent.BUTTON3 || (!InputEventBaseOnOS.isControlDown(e) && !e.isShiftDown())) {
// 如果Ctrl或者Shift键盘没有按下,则清除已经选择的组件
XCreator selectXCreator = selection.getSelectedCreator();
if (selectXCreator != null && comp != null) {
boolean clickOnce = e.getClickCount() == 1;
boolean hasCom = selectXCreator != null && comp != null;
if (clickOnce && hasCom) {
if (StringUtils.equals(selectXCreator.toData().getWidgetName(), comp.toData().getWidgetName())) {
return;
}

Loading…
Cancel
Save