From f4561874f9f619ff8c662bcfb9aa1aeefb9c9123 Mon Sep 17 00:00:00 2001 From: Christopher Shea Date: Mon, 19 Mar 2018 00:24:42 -0400 Subject: [PATCH] Add keyboard shortcut for showing tabs for a container in popup When the browser popup menu for Containers is open, a specific Container is selected, and the right arrow to expose the submenu is visible for that Container, pressing the right arrow keyboard button takes you to the submenu. Fixes #1009 --- src/js/popup.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/popup.js b/src/js/popup.js index a9e3d26..22ac55f 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -523,6 +523,12 @@ Logic.registerPanel(P_CONTAINERS_LIST, { case 38: previous(); break; + case 39: + const showTabs = element.parentNode.querySelector(".show-tabs"); + if (showTabs) { + showTabs.click(); + } + break; default: if ((e.keyCode >= 49 && e.keyCode <= 57) && Logic._currentPanel === "containersList") {