1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-06 09:19:22 +02:00

Desktop: Fix drag and drop behaviour to "copy" instead of "move" (#4031)

This commit is contained in:
Caleb John
2020-11-12 11:44:23 -07:00
committed by GitHub
parent e29e745b96
commit 62feb7ff60

View File

@@ -10,6 +10,7 @@ export default function useDropHandler(dependencies:HookDependencies) {
return useCallback(async (event:any) => {
const dt = event.dataTransfer;
dt.dropEffect = 'copy';
const createFileURL = event.altKey;
if (dt.types.indexOf('text/x-jop-note-ids') >= 0) {