fix(脑图): 输入状态回车触发添加快捷键事件修复
This commit is contained in:
parent
bc34fe73f7
commit
b783cc4420
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue