left arrow now works without changing focus in right arrow case
This commit is contained in:
parent
dae376500b
commit
1133d48103
1 changed files with 1 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue