mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #481] onKeyPress type exists but is not implemented in Solid #124
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#124
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?
Originally created by @GreyElaina on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/481
Originally assigned to: @Adictya on GitHub.
Hey! I noticed that
onKeyPressis defined in the Solid types but doesn't actually do anything.Where it's defined:
packages/solid/src/types/elements.tsline 130 -TextareaPropshasonKeyPress?: (event: KeyEvent) => voidWhat's missing:
packages/solid/src/reconciler.tshas no handling foronKeyPressRenderableonly hasonKeyDown, there's noonKeyPressequivalentSo if someone tries to use
onKeyPresson a textarea, TypeScript will be happy but the handler will never fire.Options:
@kommander commented on GitHub (Jan 26, 2026):
cc @Adictya thoughts?
@Adictya commented on GitHub (Jan 27, 2026):
Yeah looks like its outdated, looking into it more.
Ill try to propose a longterm solution here and maybe try catching stuff like this in ci. Also i think its time to pull the types to a shared lib ( @msmps lmk if you have any thoughts on this ) will try and put a pr up so we can get started on that too