copy selected to clipboard before deletion