disallow escape key close on permanent dialogs