title: Prevent submit on Enter but allow Enter for newLine in TextArea
body: <p>Is it possible to prevent the enter key from submitting forms, but allowing the enter key to work inside input. (E.g. <code>textArea</code> newline)?</p>
  
  <p>I tried so far:</p>
  
  <ul>
  <li><code>e.preventDefault()</code></li>
  <li><code>e.stopPropagation()</code></li>
  </ul>
  
  <p>Both on the form tag <code>onkeyup="if (e.keyCode == 13))"</code></p>
  
  <p>This does prevent submission of the form on enter key, but it also prevents the enter key from working inside formfields completely.
  What I want to achieve is, that when I press the enter key inside a TextArea, that it creates a newLine but when I hit enter in a <code>input type="text"</code>that it doesn't submit the form.</p>
  
  <p>Using JSF 2.3</p>
  
  <p>JQuery solution is also ok.</p>