Add cursor to selected tag.