cmux/Sources/Panels
최준영 8cd9cd96c1 Fix keyboard shortcuts not working with Korean (한글) input mode
When a non-Latin input source like Korean 두벌식 is active,
event.charactersIgnoringModifiers returns Hangul characters (e.g. ㅅ
for T key) instead of Latin letters. This caused all character-based
shortcut matching to fail — Cmd+T, Cmd+D, Cmd+1-9, Ctrl+N/P, etc.

Root cause: KeyboardLayout.character(forKeyCode:modifierFlags:) assumed
CJK input sources lack kTISPropertyUnicodeKeyLayoutData, but Korean
두벌식 has it. UCKeyTranslate returned Korean characters and the ASCII
fallback was never reached.

Fix:
- KeyboardLayout.character(): check result is ASCII before accepting;
  fall through to TISCopyCurrentASCIICapableKeyboardInputSource() when
  the current source returns non-ASCII characters
- Add KeyboardLayout.normalizedCharacters(for:) helper that normalizes
  event.charactersIgnoringModifiers for shortcut comparison
- Apply normalization in handleCustomShortcut (AppDelegate),
  BrowserPanelView omnibar key handler, and BrowserPopupWindowController
  Cmd+W handler

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:16:10 +09:00
..
BrowserPanel.swift Merge pull request #1877 from Jesssullivan/sid/fix-captcha-upstream 2026-03-21 02:11:59 -07:00
BrowserPanelView.swift Fix keyboard shortcuts not working with Korean (한글) input mode 2026-03-21 21:16:10 +09:00
BrowserPopupWindowController.swift Fix keyboard shortcuts not working with Korean (한글) input mode 2026-03-21 21:16:10 +09:00
CmuxWebView.swift Fix browser image copy pasteboard data (#1850) 2026-03-19 22:20:09 -07:00
MarkdownPanel.swift Add settings to disable pane ring and flash (#1217) 2026-03-13 03:52:56 -07:00
MarkdownPanelView.swift Add optional single-click focus for inactive panes (#1796) 2026-03-19 01:01:10 -07:00
Panel.swift Add browser find focus debug logs (#1162) 2026-03-10 19:31:52 -07:00
PanelContentView.swift Fix terminal pane drag/drop handoff delay (#1837) 2026-03-19 20:37:32 -07:00
TerminalPanel.swift Merge remote-tracking branch 'origin/main' into pr-ssh-stack-main 2026-03-13 17:56:38 -07:00
TerminalPanelView.swift Fix terminal pane drag/drop handoff delay (#1837) 2026-03-19 20:37:32 -07:00