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

登录支持键盘操作 #12

Closed
charlie0129 opened this issue Jul 6, 2022 · 0 comments · Fixed by #23
Closed

登录支持键盘操作 #12

charlie0129 opened this issue Jul 6, 2022 · 0 comments · Fixed by #23
Assignees
Labels
help wanted Extra attention is needed

Comments

@charlie0129
Copy link
Member

charlie0129 commented Jul 6, 2022

https://hinghwa.cn/login

在目前的登录页面中,输完用户名密码后,是 不能 按回车键登录的,只能用鼠标点击登录按钮。

image

这不是一个好的用户体验

我们需要支持键盘操作,例如这样

  • 键入用户名
  • tab
  • 键入密码
  • enter

登录成功

为了解决这个问题,你可能需要了解一下 HTML Form 。最终的思路就是把登录按钮移动到 Form 内,并且它是一个 submit 类型的按钮。

有个解决类似问题的 Pull Request 来参考(如果有用的话):kubevela/velaux#559

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants