[TextEditor] Fixed selection->return key press bug.