add tagger shortcut (#6261)

This commit is contained in:
Gykes 2025-11-11 21:58:30 -08:00 committed by GitHub
parent 5e34df7b7b
commit b2c8f09585
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -84,11 +84,17 @@ export const ListViewOptions: React.FC<IListViewOptionsProps> = ({
onSetDisplayMode(DisplayMode.Wall);
}
});
Mousetrap.bind("v t", () => {
if (displayModeOptions.includes(DisplayMode.Tagger)) {
onSetDisplayMode(DisplayMode.Tagger);
}
});
return () => {
Mousetrap.unbind("v g");
Mousetrap.unbind("v l");
Mousetrap.unbind("v w");
Mousetrap.unbind("v t");
};
});

View file

@ -30,6 +30,7 @@
| `v g` | Set view to grid |
| `v l` | Set view to list |
| `v w` | Set view to wall |
| `v t` | Set view to tagger |
| `+` | Increase zoom slider |
| `-` | Decrease zoom slider |
| `←` | Previous page of results |