Shun Miyazawa 3 ماه پیش
والد
کامیت
8aacb2ab99
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      apps/app/src/features/page-tree/hooks/_inner/use-tree-item-handlers.tsx

+ 4 - 0
apps/app/src/features/page-tree/hooks/_inner/use-tree-item-handlers.tsx

@@ -130,6 +130,10 @@ export const useTreeItemHandlers = (
     [],
     [],
   );
   );
 
 
+  // When using IME (e.g., Japanese input), pressing Enter to confirm
+  // the conversion would also trigger this hotkey, completing the rename
+  // prematurely. We check `isComposing` to ignore Enter presses during
+  // IME composition.
   const completeRenamingHotkey: completeRenamingHotkey = useMemo(
   const completeRenamingHotkey: completeRenamingHotkey = useMemo(
     () => ({
     () => ({
       hotkey: 'Enter',
       hotkey: 'Enter',