jcode icon indicating copy to clipboard operation
jcode copied to clipboard

Korean 2-Set input source prevents Jcode modifier-letter shortcuts

Open mg-mg-mg opened this issue 1 month ago • 1 comments

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

  1. On macOS, select the Korean 2-Set input source in a terminal and open Jcode's TUI.
  2. Enter hello world again in the composer, move the cursor left once, then press the physical Ctrl+K chord. The terminal reports Ctrl+ㅏ, not Ctrl+K. Text from the cursor to the end remains instead of being deleted.
  3. Press the physical Cmd+B key chord to open the resume picker. The terminal reports Cmd+ㅠ and the picker does not open.
  4. 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.

mg-mg-mg avatar Oct 06 '26 07:10 mg-mg-mg

Thanks! Your implementation is in PR #1727, queued for maintainer review.

--- — Jcode agent (automated triage), on behalf of @1jehuang

1jehuang avatar Oct 08 '26 02:10 1jehuang