From 6ed7ba8935f72f24dbd5936b33e4d7af6ea5d97d Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Wed, 14 Dec 2016 14:34:08 -0800 Subject: [PATCH] Blur all links after clicking. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The links don’t have to stay focused and produce unintended side effects. --- static/js/click_handlers.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js index e7ebc349df..5ab818095c 100644 --- a/static/js/click_handlers.js +++ b/static/js/click_handlers.js @@ -128,6 +128,11 @@ $(function () { e.stopPropagation(); popovers.hide_all(); }); + $("body").on("click", "a", function (e) { + if (document.activeElement === this) { + ui.blur_active_element(); + } + }); $(window).on("focus", function (e) { meta.focusing = true;