set cursor at end of text edit