Browse Source

Merge pull request #1427 in BA/design from ~KERRY/design:release/9.0 to release/9.0

* commit '28b62dca32553bb9b670e4ad1ad8d5680d762c41':
  REPORT-5369 [9.0三轮回归]撤销键按两三次才生效
master
superman 7 years ago
parent
commit
6bf9d02a62
  1. 11
      designer_base/src/com/fr/design/gui/icombobox/TextFontComboBox.java

11
designer_base/src/com/fr/design/gui/icombobox/TextFontComboBox.java

@ -6,10 +6,10 @@ import com.fr.design.gui.icombobox.filter.StartsWithFilter;
import com.fr.design.gui.itextfield.UITextField; import com.fr.design.gui.itextfield.UITextField;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import javax.swing.*; import javax.swing.ComboBoxEditor;
import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener; import javax.swing.event.DocumentListener;
import java.awt.*; import java.awt.Component;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -61,7 +61,12 @@ public class TextFontComboBox<T> extends ExtendedComboBox {
private volatile boolean setting = false; private volatile boolean setting = false;
public FilterComboBoxEditor() { public FilterComboBoxEditor() {
textField = new UITextField(15); textField = new UITextField(15){
@Override
public boolean shouldResponseChangeListener() {
return false;
}
};
textField.getDocument().addDocumentListener(this); textField.getDocument().addDocumentListener(this);
} }

Loading…
Cancel
Save