From b783cc442019da39388eba7377f37234e36fb016 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 16 Aug 2024 11:09:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=91=E5=9B=BE):=20=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=9B=9E=E8=BD=A6=E8=A7=A6=E5=8F=91=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BF=AB=E6=8D=B7=E9=94=AE=E4=BA=8B=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pure/ms-minder-editor/script/runtime/jumping.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts b/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts index 89ac38822e..8220b51fe6 100644 --- a/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts +++ b/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts @@ -90,7 +90,9 @@ function JumpingRuntime(this: IJumpingRuntime): void { if (e.type === 'keydown') { if (e.code === 'Enter') { e.preventDefault(); - return fsm.jump('normal', 'input-commit'); + return setTimeout(() => { + fsm.jump('normal', 'input-commit'); + }, 0); } if (e.code === 'Escape') { e.preventDefault();