Skip to content

Improve textarea keydown event in dialog #8652

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

Closed
WingDr opened this issue Jul 1, 2023 · 0 comments
Closed

Improve textarea keydown event in dialog #8652

WingDr opened this issue Jul 1, 2023 · 0 comments
Assignees
Milestone

Comments

@WingDr
Copy link

WingDr commented Jul 1, 2023

In what scenarios do you need this feature?

官方插件样例里的textarea中输入回车键会直接关闭设置界面,然而确实存在有输入较长文本的需求,希望能够解绑shift + enter或者ctrl + enter来允许在textarea里换行

Describe the optimal solution

image

貌似是这里,加一个&& !e.ctrltKey 或者&& !e.shiftKey就行

Describe the candidate solution

最好是能够直接解绑回车键啦,但是想想应该也有需要较长单行文本的情况,这时候又有绑定回车的需求,所以平衡一下变成类似微信聊天框那种输入就挺好的(enter发送,shift/ctrl + enter换行)

Other information

No response

@Vanessa219 Vanessa219 self-assigned this Jul 2, 2023
Vanessa219 added a commit that referenced this issue Jul 2, 2023
@Vanessa219 Vanessa219 added this to the 2.9.4 milestone Jul 2, 2023
@Vanessa219 Vanessa219 changed the title textarea的回车键被绑定 Improve textarea keydown event in dialog Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants