diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 29c549bc..3f484c7f 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -760,6 +760,9 @@ catch(e) { if (this.isDraggingAllCurrentTabs(draggedTab)) return; + if (aEvent.ctrlKey || aEvent.metaKey) + draggedTab.__treestyletab__toBeDuplicated = true; + b.replaceTabWithWindow(draggedTab); }, diff --git a/modules/window.js b/modules/window.js index 2e2f0948..1fd03522 100644 --- a/modules/window.js +++ b/modules/window.js @@ -1574,8 +1574,9 @@ TreeStyleTabWindow.prototype = { } else { let actionInfo = { - action : this.kACTIONS_FOR_DESTINATION | this.kACTION_IMPORT + action : remoteTab.__treestyletab__toBeDuplicated ? this.kACTION_DUPLICATE : this.kACTION_IMPORT }; + let b = this.browser; let blankTab; this.Deferred @@ -1591,6 +1592,9 @@ TreeStyleTabWindow.prototype = { remoteWindow = null remoteService = null; remoteMultipleTabService = null; + }) + .error(function(e) { + Application.console.log(e+'\n'+e.stack) }); } return true;