Unexpected submit on "submit" button click
<p>If I make submit button active (with <kbd>Tab</kbd> button), and then press <kbd>Enter</kbd>, keypress handler will fire, and will generate click event on button. But <code>OnClick</code> and Submit handlers will not fire. It'll just silently post the form. Why?</p>

<pre><code>&lt;script src="../js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="application/javascript"&gt;

$().ready(function(){
     $("#f1").keypress(function(event) {
          if (event.keyCode==13){
            var currentInputId = $(event)[0].target.id;
            var currentInput = $('#'+currentInputId);
            currentInput.click();
            return false;
          }
      });


  $("#f1").submit(function(){
   alert ("huy")
  })
})
&lt;/script&gt;
&lt;form name="f1" id="f1" method="POST"&gt;
&lt;input type="text"&gt;
&lt;input type="submit" onclick="return false;" id="submit"&gt;
&lt;/form&gt;
</code></pre>
