如何使用Enter键执行搜索选项而不使用Button [英] How to perform a Search option using Enter key without using a Button
本文介绍了如何使用Enter键执行搜索选项而不使用Button的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的界面中有一个搜索选项,实际上它是在点击按钮的基础上工作的,
如何使用键盘上的回车键执行此选项
I have a Search option in my interface,actually it is working on the basis of clicking a button,
How to perform this option using the enter key on the keyboard
推荐答案
这是一个跨浏览器的解决方案: http://stackoverflow.com/questions/3859748/keydown-event-to-override-return-key-does-not-work-in-firefox [ ^ ]。
-SA
This is a cross-browser solution: http://stackoverflow.com/questions/3859748/keydown-event-to-override-return-key-does-not-work-in-firefox[^].
—SA
这篇关于如何使用Enter键执行搜索选项而不使用Button的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文