Removes shortcut for the tenth container.
This commit is contained in:
parent
cf26d8547a
commit
752b1c3b27
1 changed files with 4 additions and 10 deletions
|
@ -516,12 +516,6 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
previousElement.focus();
|
previousElement.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function select(num) {
|
|
||||||
const element = selectables[num];
|
|
||||||
if (element) {
|
|
||||||
element.click();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case 40:
|
case 40:
|
||||||
next();
|
next();
|
||||||
|
@ -529,12 +523,12 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
case 38:
|
case 38:
|
||||||
previous();
|
previous();
|
||||||
break;
|
break;
|
||||||
case 48:
|
|
||||||
select(10);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
if (e.keyCode >= 49 && e.keyCode <= 57) {
|
if (e.keyCode >= 49 && e.keyCode <= 57) {
|
||||||
select(e.keyCode - 48);
|
const element = selectables[e.keyCode - 48];
|
||||||
|
if (element) {
|
||||||
|
element.click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue