Skip to content

Commit

Permalink
Fixed #16339, kbd focus management issues with fullscreen change.
Browse files Browse the repository at this point in the history
  • Loading branch information
oysteinmoseng authored and TorsteinHonsi committed Feb 1, 2022
1 parent 2739631 commit 2ec55b2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ts/Accessibility/Components/MenuComponent.ts
Expand Up @@ -189,8 +189,25 @@ class MenuComponent extends AccessibilityComponent {
* proxy overlay.
*/
public onChartRender(): void {
const chart = this.chart,
focusEl = chart.focusElement,
a11y = chart.accessibility;
this.proxyProvider.clearGroup('chartMenu');
this.proxyMenuButton();

if (
this.exportButtonProxy &&
focusEl &&
focusEl === chart.exportingGroup
) {
if (focusEl.focusBorder) {
chart.setFocusToElement(
focusEl, this.exportButtonProxy.buttonElement
);
} else if (a11y) {
a11y.keyboardNavigation.tabindexContainer.focus();
}
}
}


Expand Down

0 comments on commit 2ec55b2

Please sign in to comment.