Add keyboard shortcut to toggle video looping in scene player (#3902)

* Use shift+L to toggle video looping in scene player
This commit is contained in:
chickenwingavalanche
2023-07-11 19:25:24 -06:00
committed by GitHub
parent 3e810cf8b1
commit 76a4bfa49a
2 changed files with 7 additions and 0 deletions

View File

@@ -81,6 +81,12 @@ function handleHotkeys(player: VideoJsPlayer, event: videojs.KeyboardEvent) {
break; break;
} }
// toggle player looping with shift+l
if (event.shiftKey && event.which === 76) {
player.loop(!player.loop());
return;
}
if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) { if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) {
return; return;
} }

View File

@@ -78,6 +78,7 @@
| `↑` | Increase volume 10% | | `↑` | Increase volume 10% |
| `↓` | Decrease volume 10% | | `↓` | Decrease volume 10% |
| `m` | Toggle mute | | `m` | Toggle mute |
| `Shift + l` | Toggle player looping |
### Scene Markers tab shortcuts ### Scene Markers tab shortcuts