replace r with n for all cases of Enter Key in textField text insertion

fix #2060