made container info and container edit panel tabbable

This commit is contained in:
triptishukla 2019-11-03 11:56:20 +05:30
parent a4c578adde
commit 1f0df2bc2d

View file

@ -716,6 +716,10 @@ Logic.registerPanel(P_CONTAINER_INFO, {
Logic.addEnterHandler(document.querySelector("#close-container-info-panel"), () => {
Logic.showPreviousPanel();
});
document.getElementById("container-info-hideorshow").setAttribute("tabindex","0");
document.getElementById("container-info-movetabs").setAttribute("tabindex","0");
document.getElementById("close-container-info-panel").setAttribute("tabindex","0");
Logic.addEnterHandler(document.querySelector("#container-info-hideorshow"), async () => {
const identity = Logic.currentIdentity();
@ -928,7 +932,8 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
Logic.showPreviousPanel();
}
});
document.getElementById("edit-container-panel-back-arrow").setAttribute("tabindex","0");
Logic.addEnterHandler(document.querySelector("#edit-container-cancel-link"), () => {
Logic.showPreviousPanel();
});
@ -944,7 +949,7 @@ Logic.registerPanel(P_CONTAINER_EDIT, {
this._editForm.addEventListener("submit", () => {
this._submitForm();
});
document.getElementById("edit-container-panel-back-arrow").setAttribute("tabindex","0");
},