Browse Source

REPORT-64601 公式编辑器首次进入的时候光标位置不正确

1.修改代码。
feature/x
Hoky 3 years ago
parent
commit
79bf7e442f
  1. 2
      designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

2
designer-base/src/main/java/com/fr/design/formula/FormulaPane.java

@ -154,7 +154,6 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
private FormulaPaneAutoCompletion autoCompletion;
private DefaultCompletionProvider completionProvider;
private static final Map<String, String> PARAM_PREFIX_MAP = new HashMap<>();
private ExecutorService executorService = Executors.newCachedThreadPool(new NamedThreadFactory("formula-pane-refocus"));
public FormulaPane() {
initComponents();
@ -298,6 +297,7 @@ public class FormulaPane extends BasicPane implements KeyListener, UIFormula {
}
private void refocusInWindow() {
ExecutorService executorService = Executors.newCachedThreadPool(new NamedThreadFactory("formula-pane-refocus"));
executorService.execute(() -> {
try {
Thread.sleep(100);

Loading…
Cancel
Save