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:
parent
dcc852bf17
commit
f4561874f9
1 changed files with 6 additions and 0 deletions
|
@ -523,6 +523,12 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
case 38:
|
case 38:
|
||||||
previous();
|
previous();
|
||||||
break;
|
break;
|
||||||
|
case 39:
|
||||||
|
const showTabs = element.parentNode.querySelector(".show-tabs");
|
||||||
|
if (showTabs) {
|
||||||
|
showTabs.click();
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if ((e.keyCode >= 49 && e.keyCode <= 57) &&
|
if ((e.keyCode >= 49 && e.keyCode <= 57) &&
|
||||||
Logic._currentPanel === "containersList") {
|
Logic._currentPanel === "containersList") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue