added support for getting data from the clipboard if copy is pressed and if the data is of type text