mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-23 21:30:19 +00:00
macos: suppress control-char input while composing When AppKit delivers a single C0 control character during marked-text composition, Ghostty should treat it as input consumed by the composing state instead of forwarding it to the terminal. This prevents control-key IME actions, such as Japanese input shortcuts like ctrl+h/j/m/n, from leaking into the terminal while composition is still active. Printable text and non-composing control input continue through the normal key path. Refs #10460 Related: #2628, #4539 Vouched in #12169 Testing: - xcodebuild test -scheme Ghostty -destination platform=macOS -only-testing:GhosttyTests/SurfaceViewAppKitTests - Manually tested Japanese IME control-key shortcuts on macOS AI usage: - OpenAI Codex helped investigate, implement, test, and refine this change. I reviewed and tested the resulting code.