Browse Source

Pull request #4892: REPORT-54834 拖动进入导致没有重置的标志位

Merge in DESIGN/design from ~XIQIU/design:release/10.0 to release/10.0

* commit 'ad66330dcf404caf5f71cf305f6f0e91325cea73':
  REPORT-54834    拖动进入导致没有重置的标志位
zheng-1641779399395
Xiqiu 3 years ago
parent
commit
3f07fb0427
  1. 8
      designer-base/src/main/java/com/fr/design/gui/ipasswordfield/UIPasswordFieldWithFixedLength.java

8
designer-base/src/main/java/com/fr/design/gui/ipasswordfield/UIPasswordFieldWithFixedLength.java

@ -68,7 +68,13 @@ public class UIPasswordFieldWithFixedLength extends UIPassWordField {
this.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
UIPasswordFieldWithFixedLength.this.clearPassword = true;
UIPasswordFieldWithFixedLength.this.clearPassword = true;
}
@Override
public void mousePressed(MouseEvent e) {
// 防止拖动进入
UIPasswordFieldWithFixedLength.this.clearPassword = true;
}
});
this.addKeyListener(new KeyAdapter() {

Loading…
Cancel
Save