From 876cdb34265b090c2a74a69509f4106f2c5e8726 Mon Sep 17 00:00:00 2001 From: Ariel Leyva Date: Sat, 4 Apr 2026 03:54:19 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20enable=20copy=20operation=20on=20drag?= =?UTF-8?q?=E2=80=91and=E2=80=91drop=20with=20ctrl=20key=20(#5882)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/files/ListingItem.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/files/ListingItem.vue b/frontend/src/components/files/ListingItem.vue index ce23c482..813c0729 100644 --- a/frontend/src/components/files/ListingItem.vue +++ b/frontend/src/components/files/ListingItem.vue @@ -194,8 +194,11 @@ const drop = async (event: Event) => { const baseItems = (await api.fetch(path)).items; const action = (overwrite?: boolean, rename?: boolean) => { - api - .move(items, overwrite, rename) + const action = + (event as KeyboardEvent).ctrlKey || (event as KeyboardEvent).metaKey + ? api.copy + : api.move; + action(items, overwrite, rename) .then(() => { fileStore.reload = true; })