Skip to content

fix: prevent Enter key during IME composition from triggering actions#492

Merged
benjaminshafii merged 1 commit intodifferent-ai:devfrom
taoyuan:fix/ime-composition-guard
Feb 7, 2026
Merged

fix: prevent Enter key during IME composition from triggering actions#492
benjaminshafii merged 1 commit intodifferent-ai:devfrom
taoyuan:fix/ime-composition-guard

Conversation

@taoyuan
Copy link
Contributor

@taoyuan taoyuan commented Feb 7, 2026

When using an IME (e.g. Chinese, Japanese, Korean input methods), pressing Enter to confirm character conversion was incorrectly triggering form submissions, message sends, and other actions.

Changes across 10 files:

  • composer.tsx: triple-check IME state (event.isComposing + manual compositionstart/end flag + keyCode === 229) with addEventListener binding to work around SolidJS event delegation limitations
  • model-picker-modal.tsx: guard Enter for model selection
  • question-modal.tsx: guard Enter for option/custom input (2 handlers)
  • rename-session-modal.tsx: guard Enter for session rename
  • rename-workspace-modal.tsx: guard Enter for workspace rename
  • dashboard.tsx: guard Enter for workspace/session list items (3 handlers)
  • session.tsx: guard Enter for workspace/session list items (3 handlers)
  • proto-v1-ux.tsx: guard Enter for expandable section toggle
  • skills.tsx: guard Enter for skill card activation
  • onboarding.tsx: guard Enter for directory path input

When using an IME (e.g. Chinese, Japanese, Korean input methods), pressing
Enter to confirm character conversion was incorrectly triggering form
submissions, message sends, and other actions.

Changes across 10 files:

- composer.tsx: triple-check IME state (event.isComposing + manual
  compositionstart/end flag + keyCode === 229) with addEventListener
  binding to work around SolidJS event delegation limitations
- model-picker-modal.tsx: guard Enter for model selection
- question-modal.tsx: guard Enter for option/custom input (2 handlers)
- rename-session-modal.tsx: guard Enter for session rename
- rename-workspace-modal.tsx: guard Enter for workspace rename
- dashboard.tsx: guard Enter for workspace/session list items (3 handlers)
- session.tsx: guard Enter for workspace/session list items (3 handlers)
- proto-v1-ux.tsx: guard Enter for expandable section toggle
- skills.tsx: guard Enter for skill card activation
- onboarding.tsx: guard Enter for directory path input
@vercel
Copy link

vercel bot commented Feb 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Feb 7, 2026 1:37pm

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2026

The following comment was made by an LLM, it may be inaccurate:

@benjaminshafii benjaminshafii merged commit 6120ad5 into different-ai:dev Feb 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants