输入像提交按钮一样的键 - 怎么停止?
问题描述:
我不希望在点击提交按钮之前发生提交。
如何停止输入密钥进行提交?
- 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?