From d93d21fdfd5a0e5fa4eef390e7c59319c56611ad Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 26 Aug 2022 21:42:06 +0200 Subject: [PATCH] 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. --- web/pdf_presentation_mode.js | 1 + 1 file changed, 1 insertion(+) 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();