Overriding the F1 key in FF, chrome, ie. Is F1 on ie8/chrome on keyup and in FF on keypress? What about in an input field?

前端 未结 4 1153
遥遥无期
遥遥无期 2020-12-21 09:22

I\'m creating namespaced events with jquery. When I use the following function with code=112, a function, bool=false, everything works fine in FF and the F1 key submits to

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-21 10:17

    You can not use keys F1-F12 cross-browser. Try this demo. http://jshotkeys.googlepages.com/test-static-01.html

提交回复
热议问题