Shiretoko 3.1b3preでファイルなどをタブバー上にドロップしても正常に処理されなくなっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3459 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-12-03 18:41:58 +00:00
parent 09ade806f7
commit 2459c1fa27

View File

@ -2003,7 +2003,11 @@ TreeStyleTabBrowser.prototype = {
if ('dataTransfer' in aEvent) {
var dt = aEvent.dataTransfer;
if (dropAction.action & this.kACTION_NEWTAB) {
dt.effectAllowed = dt.dropEffect = 'move';
dt.effectAllowed = dt.dropEffect = (
!dropAction.source ? 'link' :
this.isAccelKeyPressed(aEvent) ? 'copy' :
'move'
);
}
}
return dropAction.canDrop;
@ -2036,6 +2040,7 @@ TreeStyleTabBrowser.prototype = {
var tab = aDragSession ? this.getTabFromChild(aDragSession.sourceNode) : null ;
var info = this.getDropActionInternal(aEvent, tab);
info.canDrop = true;
info.source = tab;
if (tab) {
var isCopy = this.isAccelKeyPressed(aEvent);
if (isCopy && 'duplicateTab' in this.mTabBrowser) {