<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hernie</id>
	<title>WebOS Internals - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hernie"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/wiki/Special:Contributions/Hernie"/>
	<updated>2026-04-20T05:53:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Change_%22Enter_Key%22_To_Create_Newline&amp;diff=4836</id>
		<title>Patch Messaging Change &quot;Enter Key&quot; To Create Newline</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Patch_Messaging_Change_%22Enter_Key%22_To_Create_Newline&amp;diff=4836"/>
		<updated>2009-08-27T07:08:23Z</updated>

		<summary type="html">&lt;p&gt;Hernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{template:patch}}&lt;br /&gt;
= Description=&lt;br /&gt;
I know a lot of people really like sending messages that are coherent, and a great way to do that is with the newline character. However, pressing the ENTER key in the messaging app sends a message, rather than typing a newline character. This page will show you how to (easily) change that action.&lt;br /&gt;
&lt;br /&gt;
= Prerequisites=&lt;br /&gt;
* Rooted phone.&lt;br /&gt;
&lt;br /&gt;
= Process=&lt;br /&gt;
# Log in as root.&lt;br /&gt;
# Mount the file system as RW.&lt;br /&gt;
# Enter the '''/usr/palm/applications/com.palm.app.messaging/app/controllers''' directory.&lt;br /&gt;
# Change '''compose-assistant.js''' (line 87) and '''chatview-assistant.js''' (line 100) and set '''enterSubmits''' to be '''false'''.&lt;br /&gt;
# Comment out the '''handleTextAreaKeyUp''' function in '''compose-assistant.js''' (lines 278 to 283) and '''chatview-assistant.js''' (lines 1678 to 1683).&lt;br /&gt;
&lt;br /&gt;
      Don't comment out the whole '''handleTextAreaKeyUp''' function only comment out the part that says /*this.considerForSend();&lt;br /&gt;
                                                                                                        Event.stop(event);*/&lt;br /&gt;
&lt;br /&gt;
# To actually display newlines in the chatview: In '''chatview-assistant.js''', in the ''ChatviewAssisant::preFormatChatList'' method (around line 1220), locate the lines:&lt;br /&gt;
#: &amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;if(msg.messageText &amp;amp;&amp;amp; !ChatFlags.isTransient(msg.flags)) { &lt;br /&gt;
#:: msg.messageText = msg.messageText.escapeHTML(); &amp;lt;/source&amp;gt;&lt;br /&gt;
#: and add the following just after:&lt;br /&gt;
#:&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;msg.messageText = msg.messageText.replace(/\n/g,&amp;quot;&amp;lt;br&amp;gt;&amp;quot;); &amp;lt;/source&amp;gt;&lt;br /&gt;
# Mount the file system as RO.&lt;br /&gt;
# Reboot.&lt;br /&gt;
&lt;br /&gt;
= Post-Mod Screenshots=&lt;br /&gt;
[[Image:Messaging-newline1.jpg]]&lt;br /&gt;
[[Image:Messaging-newline2.jpg]]&lt;br /&gt;
&lt;br /&gt;
= Issues=&lt;br /&gt;
* When moving down a line, you can't get the first character to be lower-case.&lt;br /&gt;
&lt;br /&gt;
= Further Development=&lt;br /&gt;
* I'm sure this is quite simple, but as I said before, I haven't put too much time into this yet... It would be really nice if we could use a SHIFT+ENTER to type a newline, and only pressing ENTER would send the message as it does now. That way, everybody wins.&lt;br /&gt;
&lt;br /&gt;
== Author(s)==&lt;br /&gt;
* xluryan&lt;/div&gt;</summary>
		<author><name>Hernie</name></author>
	</entry>
</feed>