i am trying to catch the keypress event on the window (html page opened with an app which uses gecko engine)
alert("key pressed !")
i expect this function to be called whenever any button is clicked, when the focus is on window. But the function is not been called.
Any idea what is going wrong here?
Thanks ... You should accept one of the following answers. They are both correct.
以上就是onkeypress() not working的详细内容，更多请关注web前端其它相关文章！