title: jquery ctrl+enter as enter in text area
body: <p>I am trying to reproduce standard instant messenger behavior on <strong>TEXT</strong> area control:
  enter works as send button. <kbd>ctrl</kbd>+<kbd>enter</kbd> as real enter.</p>
  <pre><code> $(&quot;#txtChatMessage&quot;).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() + &quot;\n&quot;);
      }
      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 <kbd>ctrl</kbd>+<kbd>enter</kbd>?</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 <kbd>ctrl</kbd>+<kbd>enter</kbd>) it will be better.</p>
  <p>changing on keypress event has no effect. <strong>&quot;\r\n&quot;</strong> not helped.</p>
  <p>test page located <a href="http://www26.brinkster.com/necromant/test/test.html" rel="nofollow noreferrer">here</a></p>