The Undo command (in the Edit menu) will reverse the clearing of the selected text, allowing you to restore the text which was cleared.