From e85819026b03a7de2045b43b104b131707f69b7a Mon Sep 17 00:00:00 2001 From: JustOff Date: Thu, 13 Jul 2017 16:18:41 +0300 Subject: [PATCH] Suppress auxclick events --- bootstrap.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap.js b/bootstrap.js index 0d1aa7c..0d12c40 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -991,6 +991,9 @@ function changeUI(window) { && e.originalTarget.nextSibling) globalEventHandler("clickOnFirstChild", e.originalTarget.parentNode, e); }); + listen(window, enhancedURLBar, "auxclick", function(e) { + if (e.button == 2) e.preventDefault(); + }); listen(window, enhancedURLBar, "DOMMouseScroll", function(e) { if (e.originalTarget.parentNode.parentNode == enhancedURLBar) globalEventHandler("scroll", e.originalTarget.parentNode, e);