jquery ui dialog click x event





For safety purposes, upon clicking on the OK button we will display a dialog asking the user to confirmThis appears to be a case of jQuery UI being slightly too helpful for its own good: when a dialog opens, it puts the first button inside it into focus, just in time for the enter key event to trigger