If there is no focused node inside the dialog we focus any of the available buttons, submit button is first.