From d81dec94a9c0a008754b80b4c70003c279dcd658 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 10 Mar 2026 20:18:16 +0200 Subject: [PATCH] feat(video_player): add keyboard shortcuts for toggling volume --- apps/client/src/widgets/type_widgets/file/Video.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/client/src/widgets/type_widgets/file/Video.tsx b/apps/client/src/widgets/type_widgets/file/Video.tsx index d797a855be..511fd6c25c 100644 --- a/apps/client/src/widgets/type_widgets/file/Video.tsx +++ b/apps/client/src/widgets/type_widgets/file/Video.tsx @@ -73,6 +73,16 @@ export default function VideoPreview({ note }: { note: FNote }) { video.muted = !video.muted; flashControls(); break; + case "ArrowUp": + e.preventDefault(); + video.volume = Math.min(1, video.volume + 0.05); + flashControls(); + break; + case "ArrowDown": + e.preventDefault(); + video.volume = Math.max(0, video.volume - 0.05); + flashControls(); + break; case "Home": e.preventDefault(); video.currentTime = 0;