Closed Bug 31817 Opened 25 years ago Closed 24 years ago

Tree D&D needs to support gestures to force move and copy

Categories

(Core :: XUL, defect, P2)

x86
Windows NT
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: phil, Assigned: chuang)

Details

On Windows, there are two ways for users to choose whether a drag/drop operation performs a move or a copy: 1. Right-click-drag. Users should be able to click on a selection with the right mouse button, drag to a drop target, release, and then get a menu with choices. 2. Keyboard modifiers. There are keyboard modifiers to force a move or a copy. I forget the exact details, but an OLE weenie would know. Personally, I always right-click-drag in the Explorer. As I remember, there's a similar convention for Mac where option-drags mean copy. Not sure if there's a Mac gesture to force a move. No idea if there's a convention for this on Unix.
the keyboard support is already there, it's not the tree that handles it but the drop site's javascript. The |dragAction| attribute on the drag session contains this information. Perhaps it's not quite correct, but it is there. separate bugs should be filed on the feedback once the code is in place, i think. wrt the right-mouse/drag thing, that's, um, god, um, ugly! Do we _need_ to support it? Does anyone else support it?
We don't support right-click drag in 4.x, and in fact if you try it in mail, you get a context menu for the destination at the end of the attempted drag. Supporting it will mean that context menus can't popup on mousedown, another change from 4.x. Customizing D&D for this will take more time, cause more bugs, allow for less performance tuning. I don't think this one is worth doing in this release. cc german for input.
If the drop target's JS has to do the modifier key stuff, do we need separate JS code for each platform? If that's really the right thing, this part of the bug is Candice's work, and maybe it should be a separate bug. With respect to the right-click-drag thing, I could live without it, but I think it's kind of lousy that they key modifier way doesn't give good UI feedback about whether you're forcing a move or a copy. The right-click-drag menu makes this very explicit, which is why I always use it.
1) the drag-modifier stuff maps into JS as "move" or "copy" or "link" etc, so no platform-specific JS should be needed. I hope ;) 2) then we should make sure the cursor does the "right thing" to indicate feedback, not use some obscure mechanism because it doesn't. If the cursor doesn't update correctly (i doubt it does right now), then that's a separate bug as well.
(1) Reassign to chuang to pick up the |dragAction| in the mail windows. (2) Separated the cursor feedback issue into bug 31833
Assignee: trudelle → chuang
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Priority: P3 → P2
Add force copy (using ctrl key) for mail.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.