Blur all links after clicking.

The links don’t have to stay focused and produce unintended side
effects.
This commit is contained in:
Brock Whittaker 2016-12-14 14:34:08 -08:00 committed by Tim Abbott
parent 660144a79d
commit 6ed7ba8935
1 changed files with 5 additions and 0 deletions

View File

@ -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;