Using event.which to verify if the user pressed the spacebar doesn't work in Firefox

后端 未结 4 610
粉色の甜心
粉色の甜心 2021-01-06 07:59

I want a script to verify if the key pressed is \'spacebar\', keycode 32. I noticed that IE uses other function names.

I tried a lot of solutions found here and this

4条回答
  •  灰色年华
    2021-01-06 08:28

    To display unicode of key pressed

             
                    

    Determining which key was pressed

提交回复
热议问题