media: Add keybind to reset playback rate (R)
This commit is contained in:
@@ -345,6 +345,10 @@ async function xmr_initialize_player(el) {
|
||||
media.playbackRate = Math.max(0.25, Math.min(media.playbackRate + 0.05, 4.0));
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
} else if (["r", "R"].includes(ev.key)) {
|
||||
media.playbackRate = 1.0;
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user