mirror of
https://github.com/zadam/trilium.git
synced 2026-03-21 07:43:38 +01:00
feat(video_player): add shortcuts to just to beginning/end
This commit is contained in:
parent
12f817c896
commit
6631a4a806
@ -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]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user