Fixes text-selection example
Merge pull request #4587 from yurydelendik/textselectexample

Fixes text-selection example