Skip to content

Build your personal knowledge base with Trilium Notes

feat(video_player): add keyboard shortcut to toggle mute

Elian Doran12f817c896e8
diff --git a/apps/client/src/widgets/type_widgets/file/Video.tsx b/apps/client/src/widgets/type_widgets/file/Video.tsx
index 6972f57484..ce98690d30 100644
--- a/apps/client/src/widgets/type_widgets/file/Video.tsx
+++ b/apps/client/src/widgets/type_widgets/file/Video.tsx
@@ -67,6 +67,12 @@ export default function VideoPreview({ note }: { note: FNote }) {
wrapperRef.current?.requestFullscreen();
}
break;
+ case "m":
+ case "M":
+ e.preventDefault();
+ video.muted = !video.muted;
+ flashControls();
+ break;
}
}, [togglePlayback, flashControls]);