Skip to content

fix(web): keep settings inputs focused during IME composition - #233

Merged
leoisadev1 merged 3 commits into
mainfrom
fix/web-ime-commit-on-blur
Sep 11, 2026
Merged

fix(web): keep settings inputs focused during IME composition#233
leoisadev1 merged 3 commits into
mainfrom
fix/web-ime-commit-on-blur

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

What Changed

useCommitOnBlur no longer treats Enter as commit while an IME is composing (isComposing or keyCode 229). Settings DraftInput fields keep focus until composition finishes.

Why

Confirming a CJK candidate with Enter was also submitting the half-composed value and stealing focus. BotPromptComposer already ignored composing Enter. Settings inputs did not.

Adapted from pingdotgg/t3code#10262.

UI Changes

No layout change. Callers: Settings provider instance names, portability paths, and other DraftInput fields.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I linked the accepted plugin or provider proposal in Why, or this PR does not add one
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Verification

  • vp test run apps/web/src/hooks/useCommitOnBlur.test.ts
  • targeted lint/format
  • Settings opened on the isolated fixture. A real IME session was not available in this headless browser.

Implemented and verified by Grok 4.6 High in Grok Build via Orca.

Enter while an IME is composing used to blur and commit a half-finished
character. Settings DraftInput fields now ignore that key until
composition finishes.

Adapted from pingdotgg#10262.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
akeru-bot-landing Skipped Skipped Sep 10, 2026 6:06pm UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S labels Sep 10, 2026
CI typecheck failed because the test treated React's nativeEvent as a
full KeyboardEvent. The helper now takes only the composition fields it
reads.
@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown

Greptile Summary

The IME Enter guard prevents settings inputs from committing or losing focus while an IME candidate is being confirmed. No new issues were identified.

Confidence Score: 5/5

Safe to merge.

There are no outstanding findings.

Reviews (2): Last reviewed commit: "Merge branch 'main' into fix/web-ime-com..." | Re-trigger Greptile

@leoisadev1
leoisadev1 merged commit 8b2480e into main Sep 11, 2026
11 checks passed
@leoisadev1
leoisadev1 deleted the fix/web-ime-commit-on-blur branch September 11, 2026 08:32
@github-actions github-actions Bot mentioned this pull request Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant