Reputation: 23
I want to copy the system clipboard data in my extension; I am able to get the events for copy, cut and paste of my extension, bt I want to get the event when ever system clipboard changes.
How can I do this?
Upvotes: 1
Views: 1578
Reputation: 77523
In general, you cannot. There is no event that indicates that SOMEWHERE in the system the clipboard was updated.
An imperfect solution would be to inject content scripts in all pages and listen to events in them. This will only work for copy/cut of the content of the pages themselves.
Upvotes: 1