Bug Fix in TextInput: setTextring() must update cursor position

setTextring() must update cursor position