-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
Ctrl+C does not cancel the current operation or clear input when a non-English keyboard layout (e.g. Ukrainian) is active. Nothing happens at all — the CLI simply ignores the key combination.
Switching back to an English (US) keyboard layout makes Ctrl+C work as expected again.
This likely affects all non-Latin keyboard layouts (Cyrillic, CJK, Arabic, etc.) where the physical key sends a different character code than ASCII c.
Affected version
0.0.406
Environment
- OS: macOS
- Terminal: iTerm2
- Keyboard layout: Ukrainian (standard macOS layout)
Steps to reproduce the behavior
- Start
copilotin interactive mode - Send a prompt and wait for the agent to start working
- Switch keyboard layout to Ukrainian (or any other non-English layout)
- Press
Ctrl+C - Actual: Nothing happens — the operation is not cancelled
- Switch keyboard layout back to English
- Press
Ctrl+C - Expected: The operation is cancelled (this works correctly with English layout)
Expected behavior
Ctrl+C should cancel the current operation regardless of the active keyboard layout. The shortcut should be matched by the physical key position (scancode) rather than the character produced by the current layout.
Additional context
This is a common issue in terminal applications that match key events by character rather than by physical key / scancode. Many terminal frameworks solve this by normalizing modifier+key combinations to their US-layout equivalents.
Related issues:
- Additional Keyboard Shortcuts #139 — Additional Keyboard Shortcuts
- Common editing shortcuts like Ctrl+A, Ctrl+E, etc. are not working as expected in user input (should support Readline/Emacs style and not be remapped) #1069 — Common editing shortcuts not working as expected
- Carry over terminal key-bindings (e.g. ubuntu terminal key bindings) #540 — Carry over terminal key-bindings
- Vietnamese IME Input Rendering Issue in Copilot CLI Overlay #838 — Vietnamese IME Input Rendering Issue