Bug 1402849 - Close library panel on mid mouse click r=mikedeboer

MozReview-Commit-ID: 8AM0efs7krS
This commit is contained in:
Andrea Casaccia
2017-10-31 09:16:50 +02:00
parent 97a8344bc7
commit 18cfe6c392

View File

@@ -580,6 +580,10 @@ const PanelUI = {
if (event.button > 1 || !button._highlight) {
return;
}
if (event.button == 1) {
// Bug 1402849, close library panel on mid mouse click
CustomizableUI.hidePanelForNode(button);
}
window.openUILink(button._highlight.url, event);
},