added keyboard nav to onboarding popups
This commit is contained in:
parent
27d51f89c7
commit
2cddbefb63
1 changed files with 14 additions and 1 deletions
|
@ -382,6 +382,11 @@ const Logic = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getCurrentPanel() {
|
||||||
|
const panelItem = this._panels[this._currentPanel];
|
||||||
|
return document.querySelector(this.getPanelSelector(panelItem));
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// P_ONBOARDING_1: First page for Onboarding.
|
// P_ONBOARDING_1: First page for Onboarding.
|
||||||
|
@ -550,6 +555,14 @@ Logic.registerPanel(P_CONTAINERS_LIST, {
|
||||||
case 38:
|
case 38:
|
||||||
previous();
|
previous();
|
||||||
break;
|
break;
|
||||||
|
case 13: {
|
||||||
|
const panel = Logic.getCurrentPanel();
|
||||||
|
const button = panel.getElementsByTagName("A")[0];
|
||||||
|
if(button) {
|
||||||
|
button.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