From 30e5a27eb4d3dcd5e82f6b5da21cf8b5dba0fa40 Mon Sep 17 00:00:00 2001 From: Charles Renwick Date: Fri, 26 Jan 2018 13:44:46 -0500 Subject: [PATCH] Fixes #1084. Before opening a container with the `1-9` shortcut, it ensures that the current pannel is the "containersList" --- src/js/popup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/popup.js b/src/js/popup.js index a644322..a9e3d26 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -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();