[quickview] Enclose <cr-dialog> in a <dialog> :)
Enclose |cr-dialog-container| in a <dialog> (delete-confirm-dialog) to ensure that tab index always remains within the <cr-dialog>. Also stop keydown event propagation to stop them passing out of the <dialog> for the same reasons. Implement the functions |showModalElement| and |doneCallback| to show and close the <dialog>, respectively. Minor: Change parameter type from HTMLElement to Element on the FilesConfirmDialog interface. Bug: 803259 Change-Id: Iea2482c017804e873e0ab0f23b8d7bfe2ba3ca1d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033012 Commit-Queue: Noel Gordon <noel@chromium.org> Reviewed-by:Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#737683}
Showing
Please register or sign in to comment