Add selectRange function
Merge pull request #3931 from owncloud/backport_selectRange

Fixing renaming for stable5