Skip to content

Commit

Permalink
fix: 한글 enter시 2개 블록이 생기는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Nov 22, 2024
1 parent 84f9049 commit 3b616a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/features/editor/hooks/useMarkdownGrammer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const useMarkdownGrammer = ({

switch (e.key) {
case "Enter": {
if (e.nativeEvent.isComposing) return;
e.preventDefault();
const caretPosition = currentBlock.crdt.currentCaret;
const currentContent = currentBlock.crdt.read();
Expand Down

0 comments on commit 3b616a1

Please sign in to comment.