Google Chrome Extensions: How to detect Copy action (Ctrl-C and Edit-Copy)?

后端 未结 3 1878
[愿得一人]
[愿得一人] 2020-12-15 01:39

How might I detect that a user has selected and copied some content in the currently active tab in a Google Chrome Extension?

It appears that there are no suitable E

3条回答
  •  死守一世寂寞
    2020-12-15 01:51

    Google Chrome Extensions has an experimental API for you to use that will allow you to execute a copy, cut, and paste. It currently exists in the beta build, so very soon, it will be out of experimental into stable.

    http://code.google.com/chrome/extensions/dev/experimental.clipboard.html

提交回复
热议问题