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 Events that deal with the Clipboard in chrome.tabs or chrome.windows.
Is there a way to detect such actions through Content Scripts?
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
You will have to capture onkeypress on the document element using your own event Handler, check that event.keyCode = 'C' (or the ascii code) and that the event.ctrlKey = true
If this is valid, then it is likely that the user copied text on the current page.
You will need to also capture the tab.updated event so that you know when to bind the onkeypress event.
I found the following solution:
A small working example:
manifest.json
oncopy.js
background.html