Hello!
When showing a Dialog using CreateDialogElement it's possible to grab the "enter" and "cancel" events from the Buttons in the dialogOptions, however I'm not getting the event when clicking on the "X" in the topright corner. The "function close(event) { console.log("Event", event) }" never emits.
Does this work for you, or do you have the same problem as me?