When creating dialogs with lists or checkboxes the focused item becomes either the list or the checkbox rather than any of the buttons.
In most cases the user would rather interact with the buttons through the keyboard rather than the checkbox.
This patch checks if any of the buttons has the `isDefault` attribute and then focuses it.