From 8a85edf2db34083d761d0ed115c8eedce15ef1e5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 15 Oct 2025 21:32:43 +0300 Subject: [PATCH] fix(collection/presentation): ocassional error when trying to enter fullscreen via key combination --- .../src/widgets/collections/presentation/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsx index c6429b8d7..47348ea65 100644 --- a/apps/client/src/widgets/collections/presentation/index.tsx +++ b/apps/client/src/widgets/collections/presentation/index.tsx @@ -60,7 +60,15 @@ function Presentation({ presentation } : { presentation: PresentationModel }) { apiRef.current = new Reveal(containerRef.current, { transition: "slide", - embedded: true + embedded: true, + keyboardCondition(event) { + // Full-screen requests sometimes fail, we rely on the UI button instead. + if (event.key === "f") { + return false; + } + + return true; + }, }); apiRef.current.initialize().then(() => { console.log("Slide.js initialized.");