added setFocus & isFocused method for textInput