Repository navigation
Description
Operating system
macOS
Orca version
1.4.219 (installed app). Also a source build of main at 5e65871; the affected file is unchanged on main as of b601b98.
Details
Short summary:
In the File Explorer's inline name input (New File, New Folder, Rename), the Enter key that only confirms a Japanese / Chinese / Korean IME conversion also submits the input. The file or folder is created (or renamed) with the half-typed name before the user can finish it — for example before typing the extension.
What happened?
Confirming a conversion with Enter closes the input and immediately creates the item with whatever has been converted so far.
How can we reproduce it?
- Open the File Explorer in the right sidebar, right-click a file → New File.
- With a Japanese IME, type
gijirokuand convert it to議事録. - Press Enter to confirm the conversion.
Expected: the conversion is confirmed and the input stays open, so .md can still be typed and a second Enter creates 議事録.md.
Actual: the input closes on the confirmation Enter and a file named 議事録 is created.
Anything else that might help:
- Cause:
src/renderer/src/components/right-sidebar/file-explorer-inline-input-row.tsxacts onEnter/EscapeinonKeyDownwithout any composition check. Other inputs already go through the shared helpers insrc/renderer/src/lib/ime-composition-keyboard-event.ts; this one was missed. New File, New Folder and Rename all render this same input. - By the same code path, an Escape pressed to cancel a conversion dismisses the whole input. I only saw that one in a component test, not end to end.
- Same class as [Bug]: Worktree/tab/window rename inputs commit on Japanese IME Enter confirmation (missing isComposing guard) #6980 (fixed for the worktree / tab / window rename inputs in Fix rename inputs committing on CJK IME Enter confirmation (#6980) #7081), [Bug]: AskUserQuestion "Other" free-text field submits on Japanese/CJK IME confirmation Enter (missing isComposing guard) #17820 and [Bug]: Japanese IME confirmation Enter saves and closes workspace notes again #24097.
- How I reproduced it: by hand on macOS with a Japanese IME in the installed app, where the confirmation Enter creates the file. Separately, in a hidden Electron window of an e2e build of
main, driving a Chromium IME composition over CDP (Input.imeSetComposition, then an Enter keydown marked with keyCode 229), with the same result: the input closed and a file named議事録was created. Windows and Linux were not tried. - Fix proposed in fix(file-explorer): ignore IME confirm Enter in the inline name input #25038.
Disclosure: found and written up with the help of an AI coding agent (Claude Code).
Activity
fix: prevent IME confirmation from submitting text fields (#25480)