issue #3346

squashing commits.
Merge pull request #3347 from vivin/master

issue #3346: Text Selection Example