web-library icon indicating copy to clipboard operation
web-library copied to clipboard

Dragging items between collections always makes a copy

Open tnajdek opened this issue 4 years ago • 5 comments

Behaviour should match the client, i.e. by default it's copy (showing plus icon), with a modifier key (cmd or shift depending on a platform) it's a move.

tnajdek avatar Apr 01 '20 17:04 tnajdek

It seems react-dnd expects dropEffect (i.e. whether to show "plus" icon) to be configured upfront, i.e. it cannot be easily changed while item is being dragged. Alternatively, if not defined, the default behaviour is that if "alt" is pressed, it's "copy", otherwise it's "move". It doesn't seem to allow overriding that default behaviour, which is oppositie of what we want and also uses wrong modifier key, without replacing the entire "backend".

I suspect we will need to either fork react-dnd or roll out our own drag-n-drop solution. Let's park this for now.

tnajdek avatar Apr 15 '20 12:04 tnajdek

https://forums.zotero.org/discussion/86588/moving-items-between-subcollections

tnajdek avatar Dec 08 '20 18:12 tnajdek

Moving should also be possible via "Add to collection" dialog to ensure feature parity on touch and for keyboard-only users.

tnajdek avatar Apr 25 '22 16:04 tnajdek

https://forums.zotero.org/discussion/comment/406503

tnajdek avatar Apr 26 '22 10:04 tnajdek

https://forums.zotero.org/discussion/69575/how-to-move-entries-from-one-collection-to-another

tnajdek avatar Jul 14 '22 14:07 tnajdek