提交 203d62fa 编写于 作者: A alexsch

8066142: Edit the value in the text field and then press the tab key, the number don't increase

Reviewed-by: serb, azvegint
上级 de669969
...@@ -1308,8 +1308,8 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible { ...@@ -1308,8 +1308,8 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
*/ */
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
ComboBoxEditor editor = getEditor(); ComboBoxEditor editor = getEditor();
if ((editor != null) && (e != null) if ((editor != null) && (e != null) && (editor == e.getSource()
&& (editor.getEditorComponent() == e.getSource())) { || editor.getEditorComponent() == e.getSource())) {
setPopupVisible(false); setPopupVisible(false);
getModel().setSelectedItem(editor.getItem()); getModel().setSelectedItem(editor.getItem());
String oldCommand = getActionCommand(); String oldCommand = getActionCommand();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册