mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
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:
committed by
GitHub
parent
3e810cf8b1
commit
76a4bfa49a
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user