Merge pull request #1539 from dnahol/1538-onboarding
added keyboard nav to onboarding popups
This commit is contained in:
commit
f159e42029
1 changed files with 13 additions and 0 deletions
|
@ -388,6 +388,11 @@ const Logic = {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
getCurrentPanelElement() {
|
||||
const panelItem = this._panels[this._currentPanel];
|
||||
return document.querySelector(this.getPanelSelector(panelItem));
|
||||
},
|
||||
};
|
||||
|
||||
// P_ONBOARDING_1: First page for Onboarding.
|
||||
|
@ -556,6 +561,14 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
|||
case 38:
|
||||
previous();
|
||||
break;
|
||||
case 13: {
|
||||
const panel = Logic.getCurrentPanelElement();
|
||||
const button = panel.getElementsByTagName("A")[0];
|
||||
if(button) {
|
||||
button.click();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 39:
|
||||
{
|
||||
const showTabs = element.parentNode.querySelector(".show-tabs");
|
||||
|
|
Loading…
Add table
Reference in a new issue