Add keyboard shortcuts for Scene Cover generation (#5984)

* Add keyboard shortcuts for screenshot generation

- Add 'c c' shortcut to generate screenshot at current time
- Add 'c d' shortcut to generate default screenshot
- Update keyboard shortcuts documentation
This commit is contained in:
n0ld069 2025-11-09 19:11:37 -06:00 committed by GitHub
parent 34becdf436
commit 12a9a0b5f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -248,6 +248,12 @@ const ScenePage: React.FC<IProps> = PatchComponent("ScenePage", (props) => {
Mousetrap.bind("p p", () => onQueuePrevious());
Mousetrap.bind("p r", () => onQueueRandom());
Mousetrap.bind(",", () => setCollapsed(!collapsed));
Mousetrap.bind("c c", () => {
onGenerateScreenshot(getPlayerPosition());
});
Mousetrap.bind("c d", () => {
onGenerateScreenshot();
});
return () => {
Mousetrap.unbind("a");
@ -261,6 +267,8 @@ const ScenePage: React.FC<IProps> = PatchComponent("ScenePage", (props) => {
Mousetrap.unbind("p p");
Mousetrap.unbind("p r");
Mousetrap.unbind(",");
Mousetrap.unbind("c c");
Mousetrap.unbind("c d");
};
});

View file

@ -67,6 +67,9 @@
| `r 0` | Unset rating (stars) |
| `r {0-9} {0-9}` | Set rating (decimal - `00` for `10.0`) |
| ``r ` `` | Unset rating (decimal) |
| Cover generation ||
| `c c` | Generate screenshot at current time |
| `c d` | Generate default screenshot |
| Playback ||
| `p n` | Play next scene in queue |
| `p p` | Play previous scene in queue |