title: jquery-ui Dialog: Make a button in the dialog the default action (Enter key)
body: <p>In a jquery modal dialog, is there a way to select a button as the default action (action to execute when the user presses enter)?</p>
  
  <p>Example of jquery web site: 
  <a href="http://jqueryui.com/demos/dialog/#modal-message" rel="noreferrer">jquery dialog modal message</a></p>
  
  <p>In the example above the dialog closes when the user presses Esc. I would like the "Ok" button action to be called when the user presses Enter.</p>