Korean 2-Set input source prevents Jcode modifier-letter shortcuts
Summary
With the macOS Korean 2-Set input source active, modifier-letter shortcuts reaching Jcode's TUI arrive as Hangul jamo instead of the Latin letter used in Jcode's bindings. The shortcut is missed even though the same physical key works with the English input source.
Reproduction
- On macOS, select the Korean 2-Set input source in a terminal and open Jcode's TUI.
- Enter
hello world againin the composer, move the cursor left once, then press the physical Ctrl+K chord. The terminal reportsCtrl+ㅏ, notCtrl+K. Text from the cursor to the end remains instead of being deleted. - Press the physical Cmd+B key chord to open the resume picker. The terminal reports
Cmd+ㅠand the picker does not open. - Switch to the English input source and repeat the same physical chords. They work.
Expected
Jcode interprets modifier chords from a Korean 2-Set layout by physical letter for its own shortcuts, including configured voice shortcuts, while unmodified Hangul typing remains untouched. Connected and disconnected remote sessions should behave the same as local input.
Scope
This is about chords delivered to Jcode. Terminal-owned actions such as Ghostty's default Cmd+V paste binding are separate: Ghostty may need a physical-key binding in its own configuration and Jcode cannot change a shortcut the terminal never forwards.
Environment and reference
macOS, Korean 2-Set input source, Ghostty terminal. Reproduced while using Jcode's TUI. Proposed implementation and regression tests: PR #1727. This is distinct from #1713, which concerns Undo grouping after Korean IME composition.
Thanks! Your implementation is in PR #1727, queued for maintainer review.
--- — Jcode agent (automated triage), on behalf of @1jehuang