mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #632] [MERGED] fix(keyboard): correct kitty numpad key code mappings #672
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#672
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/632
Author: @eyenalxai
Created: 2/5/2026
Status: ✅ Merged
Merged: 2/5/2026
Merged by: @kommander
Base:
main← Head:main📝 Commits (2)
2696024fix(keyboard): correct kitty numpad key code mappings7237c79test: update keypad test codes to match fixed mapping📊 Changes
3 files changed (+31 additions, -31 deletions)
View changed files
📝
packages/core/src/lib/parse.keypress-kitty.test.ts(+12 -12)📝
packages/core/src/lib/parse.keypress-kitty.ts(+17 -17)📝
packages/core/src/tests/renderer.input.test.ts(+2 -2)📄 Description
fix off-by-one error in kitty keyboard protocol numpad key mappings.
according to kitty documentation, the numpad key codes start at 57399 for kp0.
the previous mapping started at 57400, causing all keys to be off by one.
this meant pressing numpad 2 (code 57401) would incorrectly report as kp1.
changes:
shifted all keypad codes down by 1 to match kitty spec.
updated tests with correct key codes.
bun test packages/core/src/lib/parse.keypress-kitty.test.tspasses🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.