Merge pull request #15355 from Snuffleupagus/bug-1787456

Always focus the `viewerContainer` when entering PresentationMode (bug 1787456)
This commit is contained in:
Jonas Jenwald 2022-08-27 11:18:19 +02:00 committed by GitHub
commit 4c63a91036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ class PDFPresentationMode {
try {
await promise;
pdfViewer.focus(); // Fixes bug 1787456.
return true;
} catch (reason) {
this.#removeFullscreenChangeListeners();