Skip to content

Commit

Permalink
Merge pull request #3660 from Guiorgy/patch-1
Browse files Browse the repository at this point in the history
removed deprecated code in example
  • Loading branch information
jgthms authored Jul 18, 2023
2 parents 1157011 + 9154754 commit 3a45c86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/documentation/components/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@

// Add a keyboard event to close all modals
document.addEventListener('keydown', (event) => {
const e = event || window.event;

if (e.keyCode === 27) { // Escape key
if (event.code === 'Escape') {
closeAllModals();
}
});
Expand Down

0 comments on commit 3a45c86

Please sign in to comment.