From 6631a4a806f7b2d79f3edafa36a98f6f43dec9f9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 10 Mar 2026 20:16:53 +0200 Subject: [PATCH] feat(video_player): add shortcuts to just to beginning/end --- 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 ce98690d30..d797a855be 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 "Home": + e.preventDefault(); + video.currentTime = 0; + flashControls(); + break; + case "End": + e.preventDefault(); + video.currentTime = video.duration; + flashControls(); + break; } }, [togglePlayback, flashControls]);