mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #600] [MERGED] fix(input): set printable sequence for modifyOtherKeys chars #1430
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/600
Author: @simonklee
Created: 1/28/2026
Status: ✅ Merged
Merged: 1/29/2026
Merged by: @kommander
Base:
main← Head:french-keyboard📝 Commits (1)
104ebbcfix(input): set printable sequence for modifyOtherKeys chars📊 Changes
2 files changed (+20 additions, -1 deletions)
View changed files
📝
packages/core/src/lib/parse.keypress.test.ts(+14 -0)📝
packages/core/src/lib/parse.keypress.ts(+6 -1)📄 Description
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 https://github.com/anomalyco/opencode/issues/10577
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.