Disable dialog close on key press
Hello,
Would it be possible to close a dialog by just clicking the close or 'x' button?
My dialog closes when the space bar is pressed, I would like to prevent this.
Can anyone help?
Here is my currrent code:
- $("#dialog-default").dialog({
buttons: {
"Close": function () {
$(this).dialog("close");
}
}
});