title: jquery focusout == submit
body: <p>How could I tell if the focusout event occured due to an enter press = form submit or just because of clicking away? The event data which goes to the console is of type "focusout" and has no relevant information</p>
  
  <pre><code>$(".clientrow[clientid="+clientid+"] td."+fieldname+"").bind("focusout", function(event){
      console.log(event);
      setTimeout(function() {
          if (!event.delegateTarget.contains(document.activeElement)) {
              $(".clientrow[clientid="+clientid+"] td."+fieldname+"").html( 
                      $(".clientrow[clientid="+clientid+"] td."+fieldname+" input[type=text]").val()
                  );
              }
          }, 0);
      });
  </code></pre>