Skip to content

Commit

Permalink
fix(dialog): prevent exiting browser fullscreen with dialog close (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
muratcorlu committed Apr 26, 2023
1 parent 2d31e3c commit 2039007
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/dialog/bl-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export default class BlDialog extends LitElement {

private onKeydown = (event: KeyboardEvent): void => {
if (event.code === 'Escape' && this.open) {
event.preventDefault();
this.closeDialog();
}
};
Expand Down

0 comments on commit 2039007

Please sign in to comment.