Skip to content

Commit

Permalink
微修正
Browse files Browse the repository at this point in the history
  • Loading branch information
X-20A committed Nov 19, 2024
1 parent 8f41006 commit 6f91632
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ watchEffect(() => {
// エディタの切り替えを監視してショートカットキーの設定を変更する
watchEffect(
() => {
hotkeyManager.onEditorChange(openedEditor.value);
if (openedEditor.value) {
hotkeyManager.onEditorChange(openedEditor.value);
}
},
{ flush: "post" },
);
Expand Down

0 comments on commit 6f91632

Please sign in to comment.