Enable to close dialog by escape key