From 7bfa642fa3be6ed2b6cfddc009e055e06a4deba4 Mon Sep 17 00:00:00 2001 From: Harshith Goka Date: Tue, 2 Jul 2024 19:32:53 +0900 Subject: [PATCH] feat(web): add keyboard shortcuts to duplicates utility (#10736) SHIFT + K: Select keep all SHIFT + T: Select trash all SHIFT + C: Confirm selection --- .../duplicates/duplicates-compare-control.svelte | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte index 21b6e94e67..03140ecc98 100644 --- a/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte +++ b/web/src/lib/components/utilities-page/duplicates/duplicates-compare-control.svelte @@ -5,6 +5,7 @@ import DuplicateAsset from '$lib/components/utilities-page/duplicates/duplicate-asset.svelte'; import { assetViewingStore } from '$lib/stores/asset-viewing.store'; import { suggestDuplicateByFileSize } from '$lib/utils'; + import { shortcuts } from '$lib/actions/shortcut'; import { type AssetResponseDto } from '@immich/sdk'; import { mdiCheck, mdiTrashCanOutline } from '@mdi/js'; import { onDestroy, onMount } from 'svelte'; @@ -61,6 +62,14 @@ }; + +
{#each assets as asset (asset.id)}