A few fixes to text input single line scrolling.

- Fixed a problem on deleteSelection
- Fixed a problem with select
Merge pull request #287 from CIB/fix-text-input-rebase

A few fixes to text input single line scrolling.