diff --git a/src/lib/components/common/PDFViewer.svelte b/src/lib/components/common/PDFViewer.svelte
index c8dfaabf35..badbb8ac58 100644
--- a/src/lib/components/common/PDFViewer.svelte
+++ b/src/lib/components/common/PDFViewer.svelte
@@ -386,6 +386,10 @@
void selectPage(selectedPage + (e.key === 'ArrowUp' || e.key === 'ArrowLeft' ? -1 : 1));
};
+ const focusViewer = () => {
+ if (!outerContainer?.contains(document.activeElement)) outerContainer?.focus();
+ };
+
const loadPdf = async () => {
if (!url && !data) return;
@@ -462,9 +466,7 @@
});
-