type_text: newlines dispatch Enter key instead of char event