Implements the selection support before selecting the word.