Repository navigation
Commit c28bd2f
committed
input: fix ctrl shortcut normalization
Kitty can report the typed character and the base-layout key at the
same time. Match bindings against that base layout so Ctrl shortcuts
keep working under non-Latin IMEs and alternate keyboard layouts.
Also decode raw 0x1c..0x1f bytes as Ctrl+\, Ctrl+], Ctrl+^, and
Ctrl+_ so tmux-style control input reaches the same shortcut path.
Rework the keypress debug demo around parsed events instead of large
per-event cards. Keep the main feed dense, move raw input into session
detail and export output, and show the latest event with useful fields
such as source, code, and Kitty baseCode.
Add test that reproduces Ctrl+C when Kitty reports an alternate base layout
for a non-Latin IME. For anomalyco/opencode#211631 parent 1ba7364 commit c28bd2f
16 files changed
Lines changed: 972 additions & 337 deletions
File tree
- packages/core/src
- examples
- lib
- renderables
- __tests__
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
318 | 335 | | |
319 | 336 | | |
320 | 337 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 519 | + | |
529 | 520 | | |
530 | 521 | | |
531 | 522 | | |
| |||
0 commit comments