title: Dojo - submitting form by pressing Enter
body: <p>I have the following code:</p>
  
  <pre><code>&lt;div dojoType="dijit.layout.ContentPane" id="filterForm" style="padding: 3px"&gt;
      &lt;form dojoType="dijit.form.Form"&gt;
          &lt;input dojoType="dijit.form.TextBox" style="width: 120px" /&gt;
          &lt;button dojoType="dijit.form.Button" type="submit"&gt;
              Filter
          &lt;/button&gt;
          &lt;script type="dojo/connect" event="onSubmit" args="evt"&gt;
              filterGrid();
              dojo.stopEvent(evt);
          &lt;/script&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It works as expected if I click the Filter button, however I would like the same behavior when user presses Enter, while textbox is focused. This doesn't happen, though. In fact, nothing happens when I press Enter. How can I have the onSubmit handler execute upon pressing Enter? Thanks.</p>