diff --git a/web/pdf_presentation_mode.js b/web/pdf_presentation_mode.js index d1dc07821..07ff6125e 100644 --- a/web/pdf_presentation_mode.js +++ b/web/pdf_presentation_mode.js @@ -99,6 +99,7 @@ class PDFPresentationMode { try { await promise; + pdfViewer.focus(); // Fixes bug 1787456. return true; } catch (reason) { this.#removeFullscreenChangeListeners();