How to keep the jQuery UI dialog opened when closing fancybox using the “escape” key
问题 This is a reformulated question from the original posted here I have a page with a jQuery UI Dialog, and I open Fancybox from a link inside of such Dialog window. The typical UI Dialog init is like: $("#dialog-modal").dialog({ height: 240, modal: true }); // dialog ... and the typical Fancybox (v2.1.1 in this example) init like: $(".fancybox").fancybox({ closeClick: false, helpers: { title : { type : 'inside' } } }); // fancybox ... so far so good, nothing special. Then the html : <div id=