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

modal 提供keyup,keydown 事件 #7347

Closed
1 task
longyi-xw opened this issue Feb 13, 2024 · 2 comments
Closed
1 task

modal 提供keyup,keydown 事件 #7347

longyi-xw opened this issue Feb 13, 2024 · 2 comments

Comments

@longyi-xw
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

modal 提供keyup,keydown 事件, 我无法通过keyup.native触发它

What does the proposed API look like?

"ant-design-vue": "4.x",
"vue": "3.4.15",

@selicens
Copy link
Member

selicens commented Feb 16, 2024

keyup.native 只能应用在支持原生 keyup 事件的元素上,比如 inputtextarea等具有键盘输入功能的元素。而对于其他非具有键盘输入功能的元素,或是自定义组件,keyup.native 是不起作用的。

@longyi-xw
Copy link
Author

明白了,或许自行绑定modal的键盘事件是好的处理方式。

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

No branches or pull requests

2 participants