made edit containers panel tabable

This commit is contained in:
triptishukla 2019-11-02 20:58:23 +05:30
parent 47c6fb5ad0
commit 35379004cb

View file

@ -931,7 +931,8 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
tr.querySelector(".container-name").textContent = identity.name; tr.querySelector(".container-name").textContent = identity.name;
tr.querySelector(".edit-container").setAttribute("title", `Edit ${identity.name} container`); tr.querySelector(".edit-container").setAttribute("title", `Edit ${identity.name} container`);
tr.querySelector(".remove-container").setAttribute("title", `Remove ${identity.name} container`); tr.querySelector(".remove-container").setAttribute("title", `Remove ${identity.name} container`);
tr.querySelector(".edit-container").setAttribute("tabindex","0");
tr.querySelector(".remove-container").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")) {
@ -951,6 +952,7 @@ Logic.registerPanel(P_CONTAINERS_EDIT, {
}, },
}); });
// Search the container tab entered in the search box // Search the container tab entered in the search box
const search = document.querySelector("#search-containers-link"); const search = document.querySelector("#search-containers-link");