Skip to content

fix: iOS Chinese IMEs cannot input punctuation (including space)#5836

Open
someonegg wants to merge 2 commits into
xtermjs:masterfrom
someonegg:pr/ios-ime-punctuation-input-fix
Open

fix: iOS Chinese IMEs cannot input punctuation (including space)#5836
someonegg wants to merge 2 commits into
xtermjs:masterfrom
someonegg:pr/ios-ime-punctuation-input-fix

Conversation

@someonegg

@someonegg someonegg commented Apr 24, 2026

Copy link
Copy Markdown

Fixes #5835.

On iOS with Chinese IMEs, punctuation (including space) may not be sent to the terminal. The event sequence shows these characters are not reliably available at keydown time (keyCode=229 path), but become observable after input updates and at keyup.

This patch adds a keyup fallback path for pending keyCode 229 handling so punctuation/space input can be delivered reliably, including the consecutive-space conversion case (delete-then-insert to ).

@someonegg someonegg force-pushed the pr/ios-ime-punctuation-input-fix branch from 1d43552 to 872ceb2 Compare April 26, 2026 01:42
Punctuation is input via non-composition characters; it does not occur immediately at keydown and can be observed reliably at keyup. This commit adds a keyup fallback.
@someonegg someonegg force-pushed the pr/ios-ime-punctuation-input-fix branch from 872ceb2 to d6635c5 Compare April 26, 2026 11:17
Clarify comment on keyup method regarding IME behavior.
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.

iOS Chinese IMEs cannot input punctuation (including space)

1 participant