Merge pull request #992 from crenwick/open-containers-shortcut

Adds shortcut to open containers.
This commit is contained in:
luke crouch 2017-11-28 15:59:19 -06:00 committed by GitHub
commit f5ca274485

View file

@ -523,6 +523,14 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
case 38:
previous();
break;
default:
if (e.keyCode >= 49 && e.keyCode <= 57) {
const element = selectables[e.keyCode - 48];
if (element) {
element.click();
}
}
break;
}
});