Non closable dialogbox from Extension Library
问题 I'm creating a dialogbox from ExtLib and I want to prevent users to press Escape or click on X icon. I've checked several posts about same implementation but none of them using a Dialogbox from ExtLib. I was able to hide icon with CSS and I'm trying with dojo.connect to prevent the use of Escape key: XSP.addOnLoad(function(){ dojo.connect(dojo.byId("#{id:dlgMsg}"), "onkeypress", function (evt) { if(evt.keyCode == dojo.keys.ESCAPE) { dojo.stopEvent(evt); } }); }); Note I'm able to get it