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
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.tsxindex 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]);