determine which key is pressed

后端 未结 4 767
南方客
南方客 2021-01-29 14:42

How to determine which key is pressed in javascript?

4条回答
  •  梦毁少年i
    2021-01-29 15:03

    You can handle the keydown and keyup events on the document and set a flag for each key.

提交回复
热议问题