Skip to content

Commit

Permalink
add shift+tab case while at fluent-card
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Aug 17, 2023
1 parent 5d12e4b commit a470bd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mgt-components/src/components/mgt-login/mgt-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,10 @@ export class MgtLogin extends MgtTemplatedComponent {
const loginButton = this.renderRoot.querySelector('#login-button');
(loginButton as HTMLElement)?.focus();
}
const fluentCardEl = this.renderRoot.querySelector('fluent-card');
if (e.shiftKey && e.key === 'Tab' && e.target === fluentCardEl) {
this.hideFlyout();
}
};

/**
Expand Down

0 comments on commit a470bd3

Please sign in to comment.