set focus before move the caret. #FTDUEDTR-1445