Added default values for the two automatic methods of closing the dialog.

Had an epiphany last night that we'd totally forgotten to add default values to the default ways of closing the document! With this change it's easy to determine whether the escape button was used to close the window or if the backdrop was clicked.

(PS: sorry to spam you with PRs ^^)