mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
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:
parent
34becdf436
commit
12a9a0b5f6
2 changed files with 11 additions and 0 deletions
|
|
@ -248,6 +248,12 @@ const ScenePage: React.FC<IProps> = PatchComponent("ScenePage", (props) => {
|
||||||
Mousetrap.bind("p p", () => onQueuePrevious());
|
Mousetrap.bind("p p", () => onQueuePrevious());
|
||||||
Mousetrap.bind("p r", () => onQueueRandom());
|
Mousetrap.bind("p r", () => onQueueRandom());
|
||||||
Mousetrap.bind(",", () => setCollapsed(!collapsed));
|
Mousetrap.bind(",", () => setCollapsed(!collapsed));
|
||||||
|
Mousetrap.bind("c c", () => {
|
||||||
|
onGenerateScreenshot(getPlayerPosition());
|
||||||
|
});
|
||||||
|
Mousetrap.bind("c d", () => {
|
||||||
|
onGenerateScreenshot();
|
||||||
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
Mousetrap.unbind("a");
|
Mousetrap.unbind("a");
|
||||||
|
|
@ -261,6 +267,8 @@ const ScenePage: React.FC<IProps> = PatchComponent("ScenePage", (props) => {
|
||||||
Mousetrap.unbind("p p");
|
Mousetrap.unbind("p p");
|
||||||
Mousetrap.unbind("p r");
|
Mousetrap.unbind("p r");
|
||||||
Mousetrap.unbind(",");
|
Mousetrap.unbind(",");
|
||||||
|
Mousetrap.unbind("c c");
|
||||||
|
Mousetrap.unbind("c d");
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,9 @@
|
||||||
| `r 0` | Unset rating (stars) |
|
| `r 0` | Unset rating (stars) |
|
||||||
| `r {0-9} {0-9}` | Set rating (decimal - `00` for `10.0`) |
|
| `r {0-9} {0-9}` | Set rating (decimal - `00` for `10.0`) |
|
||||||
| ``r ` `` | Unset rating (decimal) |
|
| ``r ` `` | Unset rating (decimal) |
|
||||||
|
| Cover generation ||
|
||||||
|
| `c c` | Generate screenshot at current time |
|
||||||
|
| `c d` | Generate default screenshot |
|
||||||
| Playback ||
|
| Playback ||
|
||||||
| `p n` | Play next scene in queue |
|
| `p n` | Play next scene in queue |
|
||||||
| `p p` | Play previous scene in queue |
|
| `p p` | Play previous scene in queue |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue