Rank: Newbie Groups: Member
Joined: 8/11/2007 Posts: 1
|
Hi,
I would like to know how to disable the ESC key for the DialogBox. I have a dialog that self closes base on some conditions. I have removed the Close button so that it cannot be closed manually. However, it still can be closed by pressing the Esc key on my keyboard. How can I disable this feauture.
Thanks,
Alex
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Alex, I believe you can do that by handling the dialog's close event on client side via ClientSideOnEnd: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.Dialog.ClientSideOnEnd.htmlYou can let the handler to return false to cancel the close event. That way when the user press ESC key, the dialog won't close. Of course, you can not always return false because you have to allow the close to continue when your special conditions are meet. Thanks
|