title: Trigger click event on keypress for any focused element
body: <p>Is there a default way to trigger a click event anytime enter is pressed on a focused element?</p>
  
  <p>What I am referencing is the differences from pressing enter while focused on a <code>&lt;button&gt;</code> vs. pressing enter while focused on a <code>&lt;div&gt; &lt;li&gt; &lt;span&gt;</code>, etc. The <code>&lt;button&gt;</code> keypress <code>enter</code> triggers as expected. However, <code>&lt;div&gt;</code> keypress <code>enter</code> does nothing. I believe you have to specifically write the event in for that keypress.</p>
  
  <pre><code>$('li').click(function() {  
      //toggles something 
  });
  
  $("li").keydown(function(e){
      if(e.which === 13){
          $(this).click();
      }
  });
  </code></pre>