Browse Source

Merge pull request #4898 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit 'c762cb4e13937f40cc2619312fd6a95345618e8e':
  REPORT-54834    拖动进入导致没有重置的标志位
feature/10.0
superman 3 years ago
parent
commit
ec60ba1d38
  1. 6
      designer-base/src/main/java/com/fr/design/gui/ipasswordfield/UIPasswordFieldWithFixedLength.java

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

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

Loading…
Cancel
Save