Merge pull request #1097 from crenwick/fix-unwanted-shortcut-bug

Fixes #1084.
This commit is contained in:
luke crouch 2018-01-29 10:27:16 -06:00 committed by GitHub
commit d3b22faf65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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