Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea组件onInput事件对象中获取不到keyCode #15771

Open
xm1769315774 opened this issue May 24, 2024 · 1 comment
Open

Textarea组件onInput事件对象中获取不到keyCode #15771

xm1769315774 opened this issue May 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@xm1769315774
Copy link

这个特性解决了什么问题?

在微信小程序或者H5端,可以使用keyCode进行键盘事件处理,类似enter发送,shift enter 回车等等

这个 API 长什么样?

就像文档写的,onInputEventDetail中可以获取到value string 输入值
cursor number 光标位置
keyCode number 键值
当然最好兼容H5和微信小程序,小程序优先,H5暂时可以使用原生的支持

@taro-bot2 taro-bot2 bot added enhancement New feature or request labels May 24, 2024
@xm1769315774
Copy link
Author

技术栈:Taro3.6.16 + React18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant