Tweaked setting caret position on focus. Fixes #119