-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Labels
enhancement
New feature or request
Comments
技术栈:Taro3.6.16 + React18 |
This was referenced May 25, 2024
This was referenced May 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个特性解决了什么问题?
在微信小程序或者H5端,可以使用keyCode进行键盘事件处理,类似enter发送,shift enter 回车等等
这个 API 长什么样?
就像文档写的,onInputEventDetail中可以获取到value string 输入值
cursor number 光标位置
keyCode number 键值
当然最好兼容H5和微信小程序,小程序优先,H5暂时可以使用原生的支持
The text was updated successfully, but these errors were encountered: