mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add keyboard shortcuts (#637)
* Add documentation * Fix manual styling * Add dialog for setting Movie images * Mention manual in README
This commit is contained in:
@@ -32,6 +32,19 @@ export const SceneList: React.FC<ISceneList> = ({
|
||||
},
|
||||
];
|
||||
|
||||
const addKeybinds = (
|
||||
result: FindScenesQueryResult,
|
||||
filter: ListFilterModel
|
||||
) => {
|
||||
Mousetrap.bind("p r", () => {
|
||||
playRandom(result, filter);
|
||||
});
|
||||
|
||||
return () => {
|
||||
Mousetrap.unbind("p r");
|
||||
};
|
||||
};
|
||||
|
||||
const listData = useScenesList({
|
||||
zoomable: true,
|
||||
otherOperations,
|
||||
@@ -40,6 +53,7 @@ export const SceneList: React.FC<ISceneList> = ({
|
||||
renderDeleteDialog: renderDeleteScenesDialog,
|
||||
subComponent,
|
||||
filterHook,
|
||||
addKeybinds,
|
||||
});
|
||||
|
||||
async function playRandom(
|
||||
|
||||
Reference in New Issue
Block a user