Respect the behaviour of "Disable detach and tear off tab" (#540)
The addon provides ability to disable tearing off of dragged tab: https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t/ but TST killed the feature...
This commit is contained in:
parent
a870d718da
commit
c2fee561d1
@ -868,6 +868,12 @@ catch(e) {
|
|||||||
if (this.isDraggingAllCurrentTabs(draggedTab))
|
if (this.isDraggingAllCurrentTabs(draggedTab))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Respect the behaviour of "Disable detach and tear off tab"
|
||||||
|
// https://addons.mozilla.org/firefox/addon/bug489729-disable-detach-and-t/
|
||||||
|
if ('bug489729' in this.window &&
|
||||||
|
prefs.getPref('extensions.bug489729.disable_detach_tab'))
|
||||||
|
return;
|
||||||
|
|
||||||
if (aEvent.ctrlKey || aEvent.metaKey)
|
if (aEvent.ctrlKey || aEvent.metaKey)
|
||||||
draggedTab.__treestyletab__toBeDuplicated = true;
|
draggedTab.__treestyletab__toBeDuplicated = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user