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

pull/4080/head
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
1 changed files with 1 additions and 0 deletions

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