mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-20 20:48:06 +00:00
Previously, insertText commits without marked text were delivered via sendText, which applies paste semantics and wraps the text in bracketed paste when the program enables it. macOS dictation and other input methods often commit without marked text, so programs treated dictated text as a paste and applied paste-specific handling. insertText is only invoked by input methods (IME, dictation, emoji picker, character viewer); real paste operations use a separate path. Send every non-empty commit through the key event path so programs interpret input method text as typed input. Typing is unaffected (the accumulator path returns earlier) and Cmd+V pastes are unaffected. The helper is renamed from committedPreeditTextAction to committedTextAction since it no longer only handles preedit commits.