VUE JS 3-如何在Android设备上检测@Keyup?
通常,使用此代码下面的代码在计算机键盘上,我可以单击按钮尝试(在这种情况下)登录,或者如果用户更喜欢,他可以通过在仍有的同时按Enter键来进一步进行专注于输入。 < inp
<input type="email" placeholder="[email protected]" />
<input type="password" @keyup.enter="login" placeholder="Your password" />
<button @click="login">Login</button>
用户正在使用键盘上的Android手机上使用此表格,当专注于电子邮件输入时,它将具有“下一个”按钮,可以更改密码输入。 密码输入是此形式上的最后一个输入,而不是“下一个”按钮,它将具有“ go”(或在我的情况“ ir”中),如您在屏幕截图中所看到的,但是我可以看到该“ go”键与Enter不同,因此“ keyup.enter”不起作用。
我的问题是VUEJS 3中的等效键是什么“去”按钮。
Usually on a computer keyboard at a VueJS 3 form using this code below I can either click the button to try (in this case) to login, or if the user prefers, he'll can proceed further by pressing the Enter key while still having focus on the input.
<inp
<input type="email" placeholder="[email protected]" />
<input type="password" @keyup.enter="login" placeholder="Your password" />
<button @click="login">Login</button>
A user is using this form on an Android phone with its keyboard, when focused on the email input it'll have a "Next" button to change to the password input.
The password input, being the last input on this form, instead of a "Next" button it'll have a "Go" (or in my case "Ir") as you can see in the screenshot, but for what I can see that "Go" key isn't the same as an Enter, thus the "keyup.enter" doesn't work.
Screenshot of the key on the android keyboard
My question is what's the equivalent key in VueJS 3 to that "Go" button.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论