mirror of
https://github.com/videojs/video.js.git
synced 2025-02-12 12:16:27 +02:00
If the modal dialog was opened and the focus was preset inside the player, move the focus to the modal dialog. When the modal dialog is closed, move the focus back to the previously active element. When focus is inside the dialog, trap tab focus. This was inspired by https://github.com/gdkraus/accessible-modal-dialog and ally.js.