Added default button check for message dialogs.