输入像提交按钮一样的键 - 怎么停止? [英] enter key acting like submit button - how do stop?

查看:72
本文介绍了输入像提交按钮一样的键 - 怎么停止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望在点击提交按钮之前发生提交。
如何停止输入密钥进行提交?
- Russ - rneuman at scaninc。 org


Rus

I do not want a submit to happen until the submit button is click.
How can I stop the enter key from doing the submit?
--
Russ - rneuman at scaninc.org


Rus

推荐答案

如何:在输入键上禁用表单提交按:
http://www.bloggingdeveloper.com/post/Disable-Form-Submit-on-Enter-Key- Press.aspx

这是禁用此功能的错误。有些用户只会使用键盘而你正在使用关键功能。此外,出于无障碍原因,必须保留原因。
为什么要将其删除?
How To: Disable Form Submit on Enter Key Press:
http://www.bloggingdeveloper.com/post/Disable-Form-Submit-on-Enter-Key-Press.aspx

This is a mistake to disable this.  There are users who will only use a keyboard and you're taking critical functionality away from them.  Also, for accessibility reason this must be left in place.

Why do you want to remove it?


这篇关于输入像提交按钮一样的键 - 怎么停止?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆