mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #526] [CLOSED] fix: add keypad Enter key (OM) mapping for application mode #598
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#598
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/526
Author: @alpacachen
Created: 1/15/2026
Status: ❌ Closed
Base:
main← Head:fix/keypad-enter-key📝 Commits (1)
d8658a7fix: add keypad Enter key (OM) mapping for application mode📊 Changes
2 files changed (+21 additions, -0 deletions)
View changed files
📝
packages/core/src/lib/parse.keypress.test.ts(+19 -0)📝
packages/core/src/lib/parse.keypress.ts(+2 -0)📄 Description
Summary
OM->returnmapping to the keyName table inparse.keypress.tsProblem
When the numpad (keypad) is in application mode, pressing the numpad Enter key sends the escape sequence
ESC O M(\x1bOM). This sequence was not being recognized, causing the numpad Enter key to not function in applications using opentui (such as opencode).Solution
Added the
OM: "return"mapping to the keyName object, similar to how other application mode keys (OA, OB, OC, OD, etc.) are mapped.Testing
Added a test case that verifies
\x1bOMis correctly parsed as a return key event.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.