Repository navigation
Commit 104ebbc
committed
fix(input): set printable sequence for modifyOtherKeys chars
modifyOtherKeys (CSI 27;mod;code~) currently decodes name and
modifiers but leaves sequence as the raw ESC sequence. Textarea
inserts from sequence and rejects control chars (< 32), so sequences
like ESC [27;2;49~ (Shift+1 on AZERTY in WezTerm) never insert text.
Terminals that send plain "1" take the single-byte digit path and
work.
For printable codes, set sequence to the decoded character and mark
digits as number=true. This mirrors the single-byte digit behavior, so
text insertion now sees "1" instead of ESC and passes the guard.
Raw is preserved and special keys (return/escape/tab/space/backspace)
still keep their raw sequences, so control/navigation handling does
not change.
Keybinding lookup continues to use name+modifiers, so shortcuts are
unaffected.
This addresses an issue reported in opencode anomalyco/opencode#105771 parent 57ddb7f commit 104ebbc
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1501 | 1501 | | |
1502 | 1502 | | |
1503 | 1503 | | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1504 | 1518 | | |
1505 | 1519 | | |
1506 | 1520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
| |||
0 commit comments