Skip to content

Commit

Permalink
fix(core): 复上个版本无法输入任何文字的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Dec 8, 2023
1 parent 6faa815 commit 133dd69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/render/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ export const RenderScript = new Script({

// 监听快捷键
window.addEventListener('keydown', (e) => {
e.stopPropagation();
e.preventDefault();
if (e.ctrlKey && e.key === 'o') {
e.stopPropagation();
e.preventDefault();
this.cfg.visual = this.cfg.visual === 'close' ? 'normal' : 'close';
}
});
Expand Down

0 comments on commit 133dd69

Please sign in to comment.