title: Image input onclick event being fired when enter button Pressed
body: <p>I have a strange problem where an onclick event on an input image is being fired when i hit enter in input text box</p>
  
  <pre><code>&lt;form id="MyForm" action="/someaction"&gt;
  
  &lt;input type="image" src="someimage.jpg" onclick="doStuff();$('#MyForm').submit();" /&gt;
  
  &lt;input type="text" name="textInput"/&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>When the cursor is in the text box and i hit enter, rather than the form being submitted it calls the onclick event on the image input.</p>
  
  <p>Any ideas whats going on ?</p>