left arrow now works without changing focus in right arrow case

This commit is contained in:
dnahol 2019-10-24 14:02:28 -07:00
parent dae376500b
commit 1133d48103

View file

@ -543,7 +543,6 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
previousElement.focus();
}
}
switch (e.keyCode) {
case 40:
next();
@ -557,15 +556,11 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
if(showTabs) {
showTabs.click();
}
const panel = document.querySelector("html");
if(panel) {
panel.focus();
}
break;
}
case 37:
{
const hideTabs = element.parentNode.querySelector(".panel-back-arrow");
const hideTabs = document.querySelector(".panel-back-arrow");
if(hideTabs) {
hideTabs.click();
}