Skip to content

High performance self-hosted photo and video management solution.

feat(web): add page up and page down shortcuts (#8910)

martin112d6d60ec1a
diff --git a/web/src/lib/components/photos-page/asset-grid.svelte b/web/src/lib/components/photos-page/asset-grid.svelte
index a84b9d4d73..a3f4c51563 100644
--- a/web/src/lib/components/photos-page/asset-grid.svelte
+++ b/web/src/lib/components/photos-page/asset-grid.svelte
@@ -106,6 +106,8 @@
{ shortcut: { key: '?', shift: true }, onShortcut: () => (showShortcuts = !showShortcuts) },
{ shortcut: { key: '/' }, onShortcut: () => goto(AppRoute.EXPLORE) },
{ shortcut: { key: 'A', ctrl: true }, onShortcut: () => selectAllAssets(assetStore, assetInteractionStore) },
+ { shortcut: { key: 'PageUp' }, onShortcut: () => (element.scrollTop = 0) },
+ { shortcut: { key: 'PageDown' }, onShortcut: () => (element.scrollTop = viewport.height) },
];
if ($isMultiSelectState) {