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:
parent
e29e745b96
commit
62feb7ff60
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user