1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {