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; })