EditBox control caret implementation