Fixed #5704: fixed a bug of ccui.TextField

fixed a bug of ccui.TextField