fix cntrl drag drop r=putterman 47195

This commit is contained in:
bienvenu%netscape.com 2000-08-04 22:53:53 +00:00
Родитель 7ee2ba9ae0
Коммит 507c734ecc
1 изменённых файлов: 16 добавлений и 10 удалений

Просмотреть файл

@ -172,6 +172,10 @@ function DropOnFolderTree(event)
var treeItem = event.target.parentNode.parentNode;
if (!treeItem) return(false);
if (event.ctrlKey)
ctrlKeydown = true;
else
ctrlKeydown = false;
// drop action is always "on" not "before" or "after"
// get drop hint attributes
var dropBefore = treeItem.getAttribute("dd-droplocation");
@ -274,21 +278,23 @@ function DropOnFolderTree(event)
else
gNextMessageAfterDelete = null;
if (ctrlKeydown)
messenger.CopyMessages(treeDatabase,
messenger.CopyMessages(treeDatabase,
sourceRescource,
targetNode, messageList, false);
else
messenger.CopyMessages(treeDatabase,
sourceRescource,
targetNode, messageList, true);
targetNode, messageList, !ctrlKeydown);
}
}
else
{
messenger.CopyMessages(treeDatabase,
sourceRescource,
targetNode, messageList, false);
messageTree = GetThreadTree();
var nextMessage = GetNextMessageAfterDelete(messageTree.selectedItems);
if(nextMessage)
gNextMessageAfterDelete = nextMessage.getAttribute('id');
else
gNextMessageAfterDelete = null;
messenger.CopyMessages(treeDatabase,
sourceRescource,
targetNode, messageList, !ctrlKeydown);
}
return(false);