add tabindex to edit containers panel buttons
This commit is contained in:
parent
27d51f89c7
commit
950322acca
1 changed files with 7 additions and 4 deletions
|
@ -888,9 +888,12 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
|
||||||
/>
|
/>
|
||||||
</td>`;
|
</td>`;
|
||||||
tr.querySelector(".container-name").textContent = identity.name;
|
tr.querySelector(".container-name").textContent = identity.name;
|
||||||
tr.querySelector(".edit-container").setAttribute("title", `Edit ${identity.name} container`);
|
const edit = tr.querySelector(".edit-container");
|
||||||
tr.querySelector(".remove-container").setAttribute("title", `Remove ${identity.name} 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 => {
|
Logic.addEnterHandler(tr, e => {
|
||||||
if (e.target.matches(".edit-container-icon") || e.target.parentNode.matches(".edit-container-icon")) {
|
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("--overflow-size", difference + "px");
|
||||||
root.style.setProperty("--icon-fit", "12");
|
root.style.setProperty("--icon-fit", "12");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue