fix(dialog): don't move focus to dialog container if focus is already inside the dialog (#16297)
fix(dialog): don't move focus to dialog container if focus is already inside the dialog (#16297)

This is a follow-up to https://github.com/angular/components/pull/16221. What we hadn't accounted for in the aforementioned PR is that the consumer may have turned off `autoFocus` so that they can handle it themselves and with our changes focus would be reset back to the container. These changes add an extra check which will ensure that focus is only moved if it's not inside the dialog already.
Jefiozie/material2,mmalerba/material2,jelbourn/material2,andrewseguin/material2,mmalerba/material2,DevVersion/material2,josephperrott/material2,andrewseguin/material2,angular/components,andrewseguin/material2,crisbeto/material2,andrewseguin/material2,Jefiozie/material2,angular/components,mmalerba/material2,josephperrott/material2,DevVersion/material2,mmalerba/material2,DevVersion/material2,jelbourn/material2,jelbourn/material2,DevVersion/material2,josephperrott/material2,Jefiozie/material2,jelbourn/material2,andrewseguin/material2,Jefiozie/material2,angular/components,jelbourn/material2,josephperrott/material2,angular/components,crisbeto/material2,josephperrott/material2,DevVersion/material2,crisbeto/material2,Jefiozie/material2,crisbeto/material2,mmalerba/material2