mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #384] [MERGED] introduce key name aliases #501
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#501
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/384
Author: @kommander
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/5/2025
Merged by: @kommander
Base:
main← Head:normalized-key-names📝 Commits (6)
417a07aintroduce key aliases for mappingaf82f9bbindings for input renderable4c5a862simplify421fa2aselect08ea93dtabselect2f7b5ecfix types📊 Changes
10 files changed (+1089 additions, -81 deletions)
View changed files
📝
packages/core/src/lib/keymapping.test.ts(+98 -1)📝
packages/core/src/lib/keymapping.ts(+28 -1)📝
packages/core/src/renderables/Input.test.ts(+199 -0)📝
packages/core/src/renderables/Input.ts(+118 -47)📝
packages/core/src/renderables/Select.test.ts(+163 -0)📝
packages/core/src/renderables/Select.ts(+80 -15)➕
packages/core/src/renderables/TabSelect.test.ts(+188 -0)📝
packages/core/src/renderables/TabSelect.ts(+72 -14)📝
packages/core/src/renderables/Textarea.ts(+18 -3)📝
packages/core/src/renderables/__tests__/Textarea.keybinding.test.ts(+125 -0)📄 Description
Currently the key parsing only knows about
returnandlinefeed, but in theTextareayou may for example want to allow using the nameenter, so an alias allows you to mapentertoreturnand when a keybinding forenterexists it will react toreturn.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.