Skip to content

mpv chat: support IME for CJK input via input-ime - #822

Open
nz3u wants to merge 1 commit into
Syncplay:masterfrom
nz3u:mpv-chat-ime
Open

nz3u wants to merge 1 commit into
Syncplay:masterfrom
nz3u:mpv-chat-ime

Conversation

@nz3u

@nz3u nz3u commented Oct 18, 2026

Copy link
Copy Markdown

The mpv chat input now accepts text composed by a system input method, so Chinese/Japanese/Korean can be typed with an IME while the input box is open. Requires mpv 0.40+; older versions keep the previous behaviour.

The console chat input only relied on key bindings, which deliver single US-ASCII-representable keys and therefore can never receive text composed by a system input method. Bind the 'any_unicode' text input event to feed composed UTF-8 strings into the input line, and toggle mpv's 'input-ime' property while the input box is open so an IME can compose Chinese/Japanese/Korean text.

Both 'any_unicode' and 'input-ime' are available since mpv 0.40.0; on older builds the existing per-key bindings are used unchanged.
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.

1 participant