From 112d6d60ec1aee1d6bf9ed7228cf18cf80fcbd6a Mon Sep 17 00:00:00 2001 From: martin <74269598+martabal@users.noreply.github.com> Date: Fri, 19 Apr 2024 03:11:54 +0200 Subject: [PATCH] feat(web): add page up and page down shortcuts (#8910) feat: add page up and page down shortcuts --- web/src/lib/components/photos-page/asset-grid.svelte | 2 ++ 1 file changed, 2 insertions(+) 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) {