From 12f817c896e88ce2d13b5e3f4e73133d251c8687 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 10 Mar 2026 20:16:04 +0200 Subject: [PATCH] feat(video_player): add keyboard shortcut to toggle mute --- apps/client/src/widgets/type_widgets/file/Video.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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]);