Changed the CopyAction so that it clears the selection in the editor.