Pressing Enter to confirm IME input submits the prompt composer
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- html, javascript
- Domain
- frontend
Research direction
Start with the keydown handler at public/index.html:1838-1842 and check for similar Enter-to-submit handlers in public/. The issue describes the IME signals to handle: e.isComposing and e.keyCode === 229. Confirm the done criteria by testing IME candidate confirmation, plain Enter submission, and Shift+Enter newline behavior.
Written by the indexing model from the issue text.
Description
The composer's keydown handler (public/index.html:1838-1842) submits on any Enter without Shift:
if (e.key !== "Enter" || e.shiftKey) return;
e.preventDefault();
realGenerate();
Users typing Japanese, Chinese or Korean press Enter to confirm a candidate from the input method. While the IME is composing, that keydown still has key === "Enter". So the brief is sent half-written, and the composed text never lands in the box.
Expected: Enter submits only when no composition is active.
Fix direction: return early when e.isComposing is true. Also check e.keyCode === 229, because Safari reports it for IME keydowns. No other Enter-to-submit handler in public/ has this check, so search for similar handlers (director-workspace.js:583 uses Ctrl/Cmd+Enter and is fine).
Done when you can type and confirm a Japanese phrase with the macOS or Windows IME, or a browser IME extension, without triggering generation. A plain Enter still submits, and Shift+Enter still adds a newline.
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blixvip/NullMotion
-
accessibility help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
blixvip/NullMotion#47 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
blixvip/NullMotion#43 ·
-
accessibility good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
blixvip/NullMotion#42 ·
-
accessibility good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
blixvip/NullMotion#41 ·
-
accessibility good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
blixvip/NullMotion#40 ·
All issues in blixvip/NullMotion
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#5901 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
awslabs/visual-asset-management-system#1234 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day