How to override the keyboard copy function?

A post was split to a new topic: Pasting data into diagram