From 950322acca655efa741528777b389de95b29d9f0 Mon Sep 17 00:00:00 2001 From: dnahol Date: Wed, 23 Oct 2019 18:42:28 -0700 Subject: [PATCH] add tabindex to edit containers panel buttons --- src/js/popup.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index e5b4dbf..0d7192c 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -888,9 +888,12 @@ Logic.registerPanel(P_CONTAINERS_EDIT, { /> `; tr.querySelector(".container-name").textContent = identity.name; - tr.querySelector(".edit-container").setAttribute("title", `Edit ${identity.name} container`); - tr.querySelector(".remove-container").setAttribute("title", `Remove ${identity.name} container`); - + const edit = tr.querySelector(".edit-container"); + edit.setAttribute("title", `Edit ${identity.name} container`); + edit.setAttribute("tabindex", "0"); + const remove = tr.querySelector(".remove-container"); + remove.setAttribute("title", `Remove ${identity.name} container`); + remove.setAttribute("tabindex", "0"); Logic.addEnterHandler(tr, e => { if (e.target.matches(".edit-container-icon") || e.target.parentNode.matches(".edit-container-icon")) { @@ -1154,4 +1157,4 @@ window.addEventListener("resize", function () { root.style.setProperty("--overflow-size", difference + "px"); root.style.setProperty("--icon-fit", "12"); } -}); \ No newline at end of file +});