Browse Source

REPORT-62808 公式编辑器优化,辅助框内选择函数后,函数名没有正确跳转

1.修复单击实现偶然失效的bug;
2.修复上下键不生效的bug。
feature/x
Hoky 3 years ago
parent
commit
b5945c3149
  1. 27
      designer-base/src/main/java/com/fr/design/gui/autocomplete/FormulaAutoCompletePopupWindow.java

27
designer-base/src/main/java/com/fr/design/gui/autocomplete/FormulaAutoCompletePopupWindow.java

@ -152,32 +152,7 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener,
list.setCellRenderer(new DelegatingCellRenderer()); list.setCellRenderer(new DelegatingCellRenderer());
list.addListSelectionListener(this); list.addListSelectionListener(this);
list.addMouseListener(new MouseListener() { list.addMouseListener(this);
@Override
public void mouseClicked(MouseEvent e) {
}
@Override
public void mousePressed(MouseEvent e) {
}
@Override
public void mouseReleased(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
});
JPanel contentPane = new JPanel(new BorderLayout()); JPanel contentPane = new JPanel(new BorderLayout());
JScrollPane sp = new JScrollPane(list, JScrollPane sp = new JScrollPane(list,

Loading…
Cancel
Save