minimise of dialog box on press of escape key