From 686a4cd74003cc49ceefd3f72f0ba7a9e7af6ef4 Mon Sep 17 00:00:00 2001 From: Erayd Date: Thu, 26 Jul 2018 10:47:25 +1200 Subject: [PATCH] Fix incorrect reference (#26) Fixes #25. --- src/popup/interface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/popup/interface.js b/src/popup/interface.js index f4650c3..3960922 100644 --- a/src/popup/interface.js +++ b/src/popup/interface.js @@ -205,7 +205,7 @@ function keyHandler(e) { case "Tab": var partElement = e.target.closest(".part"); var targetElement = e.shiftKey ? "previousElementSibling" : "nextElementSibling"; - if (partElement[targetElement] && e.target[targetElement].hasAttribute("tabindex")) { + if (partElement[targetElement] && partElement[targetElement].hasAttribute("tabindex")) { partElement[targetElement].focus(); } else { document.querySelector(".part.search input[type=text]").focus();