Added methods to get copied text in widget and in event. Added tests.