Questions tagged «keyevent»


20
jQuery如何捕获Enter键并将事件更改为Tab
我想要一个jquery解决方案,我必须亲近,需要做什么? $('html').bind('keypress', function(e) { if(e.keyCode == 13) { return e.keyCode = 9; //set event key to tab } }); 我可以返回false,它可以防止按下Enter键,我以为可以将keyCode更改为9使其成为选项卡,但它似乎不起作用。我必须接近,这是怎么回事?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.