Merge "fix wrong behaviour of SelectWholeText()" into devel/master