Add set focus index by code