Is it possible to add a listener to dispatch an event on clipboard content change, e.g. if an user copies some text from another application? I'd like to make something like a dictionary that displays translation equivalents for words copied to clipboard. I tried to do it by addEventListener to generalClipboard but it seems not to be so easy.
Any suggestions would be appreciated,
No, there's no such event dispatched.
You might check the clipboard content every few seconds and save them in a local variable.
If the current value does not equal the last saved one you may dispatch your own event.
Great thanks guys