Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(collection/presentation): ocassional error when trying to enter fullscreen via key combination
Elian Doran8a85edf2db34
diff --git a/apps/client/src/widgets/collections/presentation/index.tsx b/apps/client/src/widgets/collections/presentation/index.tsxindex c6429b8d7a..47348ea650 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.");