How to to initialize keyboard event with given char/keycode in a Chrome extension?

后端 未结 3 1909
生来不讨喜
生来不讨喜 2020-12-03 15:04

I\'m developing a Google Chrome extension which simulates keyboard events on a web-page.

I found that event.initKeyboardEvent() does not work properly b

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 16:03

    I found that chrome debugger protocol v1.1 is the definite answer to simulating key and mouse events from a Google Chrome extension. Part of the protocol is accessible through chrome.debugger API.

提交回复
热议问题