Skip to content

Commit

Permalink
Fixes #1084.
Browse files Browse the repository at this point in the history
Before opening a container with the `1-9` shortcut, it ensures that the current pannel is the "containersList"
  • Loading branch information
crenwick committed Jan 26, 2018
1 parent 0f720ec commit 30e5a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/popup.js
Expand Up @@ -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();
Expand Down

0 comments on commit 30e5a27

Please sign in to comment.