Always focus the viewerContainer when entering PresentationMode (bug 1787456)

This fixes the regression in [bug 1787456](https://bugzilla.mozilla.org/show_bug.cgi?id=1787456), assuming that it should be handled on the PDF.js side.
This commit is contained in:
Jonas Jenwald 2022-08-26 21:42:06 +02:00
parent f2b5210b36
commit d93d21fdfd

View File

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