Hi,
I see that if an input in dialog focus(), we can not close the dialog with "Escape" key press.
Is there a general setting that can help me achieve this?
--
Or is there a way that I can trigger dialog close function with a general event?
document.querySelector(".k-dialog-content input")
.addEventListener("keydown",function(e){ if(e.key == "Escape") { this.closest(".k-dialog")._wishToClose_(); } });