title: Disable enter key in JQuery ui datepicker
body: <p>There seems to be a bug with JQuery UI datepicker, when user manually enters a date, and hits enter, the datepicker closes but focus stays on the field and therefor calendar won't open again until the textbox loses focus and gets it again. 
  How can I supress the enter key behavior? Or are there any other known solutions for this seemingly known bug?
  Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>After working on this a bit more, this is the solution I came up with: </p>
  
  <pre><code>$('#someid').bind('keydown', function(event) {
  
      if (event.which == 13) {var e=jQuery.Event("keydown");
                      e.which = 9;//tab 
                      e.keyCode = 9;
                      $(this).trigger(e);
                      return false;
                  }
              });
  </code></pre>
  
  <p>The tab key works well and prevents the default behavior of the datepicker's enter key event like selecting today's date in certain cases.</p>