Remove focusing before filling field

It sometimes causes cursor to be positionned in the middle of a word,
which writes the new value inside the word (instead of replacing the
whole content).