Before opening a container with the `1-9` shortcut, it ensures that the current pannel is the "containersList"
This commit is contained in:
Charles Renwick 2018-01-26 13:44:46 -05:00
parent 0f720ec11d
commit 30e5a27eb4

View file

@ -524,7 +524,8 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
previous(); previous();
break; break;
default: default:
if (e.keyCode >= 49 && e.keyCode <= 57) { if ((e.keyCode >= 49 && e.keyCode <= 57) &&
Logic._currentPanel === "containersList") {
const element = selectables[e.keyCode - 48]; const element = selectables[e.keyCode - 48];
if (element) { if (element) {
element.click(); element.click();