jquery ctrl+enter as enter in text area
<p>I am trying to reproduce standard instant messenger behavior on TEXT area control:
enter works as send button. ctrl+enter as real enter. </p>

<pre><code> $("#txtChatMessage").keydown(MessageTextOnKeyEnter);
 function MessageTextOnKeyEnter(e)
 {
    if (!e.ctrlKey &amp;&amp; e.keyCode == 13)
    {
       SendMessage();
       return false;
    }
    else if(e.keyCode == 13)
    {
       $(this).val($(this).val() + "\n");
    }
    return true;
 }
</code></pre>

<p>I have tried with both commented line and without. Not works. simple enter works as expected.
Any ideas how to add enter on ctrl+enter?</p>

<p>key code is not problem. they are detected correctly. so all if's works as expected. But appending new line works incorrectly (in FF, Chrome works correctly). So I need correct multibrowser way to insert new line symbol to textarea. If without adding string manually (by some event based on ctrl+enter) it will be better.</p>

<p>changing on keypress event has no effect. "\r\n" not helped.</p>

<p>test page located <a href="http://www26.brinkster.com/necromant/test/test.html" rel="nofollow">here</a></p>
