title: Ajax.BeginForm + prevent submit on enter
body: <p>I'm using ASP.NET MVC 3 with unobstrusive ajax and I would like to prevent submit form by enter. I wrote the following code to do that</p>
  
  <pre><code>$(window).keypress(function (event) { 
      if (event.which == 13) { 
         event.preventDefault(); 
      } 
  });
  </code></pre>
  
  <p>Unfortunately this event is not triggered on IE8. Is there any other options. (I'm using jQuery 1.6.4)</p>