diff --git a/apps/client/src/features/editor/title-editor.tsx b/apps/client/src/features/editor/title-editor.tsx index 33b71b0c..e695867f 100644 --- a/apps/client/src/features/editor/title-editor.tsx +++ b/apps/client/src/features/editor/title-editor.tsx @@ -154,7 +154,11 @@ export function TitleEditor({ function handleTitleKeyDown(event: any) { if (!titleEditor || !pageEditor || event.shiftKey) return; - + + // Prevent focus shift when IME composition is active + // `keyCode === 229` is added to support Safari where `isComposing` may not be reliable + if (event.nativeEvent.isComposing || event.nativeEvent.keyCode === 229) return; + const { key } = event; const { $head } = titleEditor.state.selection;