feat(video_player): add shortcuts to just to beginning/end

This commit is contained in:
Elian Doran 2026-03-10 20:16:53 +02:00
parent 12f817c896
commit 6631a4a806
No known key found for this signature in database

View File

@ -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]);