KeyboardEvent in Chrome, keyCode is 0

后端 未结 6 1547
北海茫月
北海茫月 2020-12-05 13:32

I am trying to set keyCode on dispatched event object .

On button click, event is raised on textbox control to simulating keydown event. Event is raised successfully

6条回答
  •  旧时难觅i
    2020-12-05 14:01

    I am amazed that this bug has been sitting there for ages. There seems to be a workaround using generic events. Here's a demo: http://jsbin.com/awenaq/3

提交回复
热议问题