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