to feedback actual behavior, select dragged tabs automatically if MTH is installed
This commit is contained in:
parent
97f0875298
commit
a1b73fb9a2
@ -691,7 +691,22 @@ catch(e) {
|
|||||||
event : aEvent
|
event : aEvent
|
||||||
};
|
};
|
||||||
var tabsInfo = this.getDraggedTabsInfoFromOneTab(actionInfo, aTab);
|
var tabsInfo = this.getDraggedTabsInfoFromOneTab(actionInfo, aTab);
|
||||||
if (tabsInfo.draggedTabs.length > 1)
|
if (tabsInfo.draggedTabs.length <= 1)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (
|
||||||
|
'MultipleTabService' in w &&
|
||||||
|
'isSelected' in w.MultipleTabService &&
|
||||||
|
'setSelection' in w.MultipleTabService &&
|
||||||
|
'clearSelection' in w.MultipleTabService &&
|
||||||
|
!w.MultipleTabService.isSelected(aTab)
|
||||||
|
) {
|
||||||
|
w.MultipleTabService.clearSelection(sv.browser);
|
||||||
|
tabsInfo.draggedTabs.forEach(function(aTab) {
|
||||||
|
w.MultipleTabService.setSelection(aTab, true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
w['piro.sakura.ne.jp'].tabsDragUtils.startTabsDrag(aEvent, tabsInfo.draggedTabs);
|
w['piro.sakura.ne.jp'].tabsDragUtils.startTabsDrag(aEvent, tabsInfo.draggedTabs);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user