Take focus before setting the caret position and selections.

1 file changed