Fixed #5704: fixed a bug of ccui.TextField