Avoid calling setText which resets the input position