Issue by TomMalbran
Monday Apr 28, 2014 at 19:24 GMT
Originally opened as adobe/brackets#7677
Since every dialog has at least one button that is not disabled (to be able to close the dialog), this will set the focus on any other button when the primary one is disabled.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/7677/commits