Composing text is not cleared if you write too fast

In some scenarios when you write very fast, onUpdateSelection
is called with delay. This can lead to a incorrect state in
the input methods.
Current change notifies InputMethod as soon as a cursor position has
been changed.

Change-Id: I5064d52f576225f79544e06e3de2d2acef30c597