Update dist
Force move caret to the left if input is empty