mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
fix(collection/presentation): ocassional error when trying to enter fullscreen via key combination
This commit is contained in:
parent
3495ed82fb
commit
8a85edf2db
@ -60,7 +60,15 @@ function Presentation({ presentation } : { presentation: PresentationModel }) {
|
|||||||
|
|
||||||
apiRef.current = new Reveal(containerRef.current, {
|
apiRef.current = new Reveal(containerRef.current, {
|
||||||
transition: "slide",
|
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(() => {
|
apiRef.current.initialize().then(() => {
|
||||||
console.log("Slide.js initialized.");
|
console.log("Slide.js initialized.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user