Fixed move-caret issue

However, if one scrolls in the textbox while the window is active, the
accent will not be applied.