replace '\r' with '\n' for all cases of Enter Key in TextField text insertion

fix #2060