Prevent closing dialogs with escape key