Repository navigation
[BUG REPORT] Keep Option as Alt working with macOS input methods - #18
Merged
Raiden-MeixElysia merged 1 commit intoOct 24, 2026
Merged
Conversation
totorowldox
marked this pull request as ready for review
October 22, 2026 12:42
Raiden-MeixElysia
added a commit
that referenced
this pull request
Oct 24, 2026
…ds an Option key Option as Alt claims, so that key goes as Alt under an input method and every other key reaches the input method first, as before PR #18, where a plain key under kitty's report-all-keys flag went as CSI u and never reached Pinyin
Contributor
|
@totorowldox Thank you for the fix and the clear report. It is merged in b7bfb55, with one change on top, 831c150.
Under WeType Pinyin: Both sends |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
What and why
With Option as Alt set to Both,
⌥ftypedƒwhile a Chinese input method was active, its built-in English mode included. Selected Option keys now reach the terminal's Alt encoding first.Bug details
⌥fin the terminal.ESC f.ƒ.ƒ, soalt_is_metanever ran.TerminalViewnow reportsaccepts_text_input = falseon macOS, so key listeners run first; plain text and IME composition/commit still reach the input handler.How it was tested
cargo run --example shotwith 水杉输入法 Shuangpin active, reading the bytes a raw-mode program received:⌥ftwice →ƒƒ⌥ftwice →ESC f ESC f; plainf, Escape and a marked/committed中文still arrive⌥f→ESC f, right⌥f→ƒcargo test --locked --lib term::input::testscargo test --locked --lib term::keys::testscargo fmt --checkNot run: the full
scripts/check.sh; other input methods.Checklist
[FEATURE REQUEST],[BUG REPORT]or[Other]shotbuild passed; fullscripts/check.shnot run)