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
This commit is contained in:
Christopher Shea 2018-03-19 00:24:42 -04:00
parent dcc852bf17
commit f4561874f9
No known key found for this signature in database
GPG key ID: C1AB098755CD0198

View file

@ -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") {