Skip to content

Commit

Permalink
fix event
Browse files Browse the repository at this point in the history
  • Loading branch information
dergachevm committed Oct 4, 2024
1 parent 9bf03e7 commit ea8179b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/app/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ export default class Popup {
this.openedPopups = [];

document.body.addEventListener('keydown', (event) => {
console.log('event', );
if (event.keyCode === 27) this.closeAll();
if (event.key === 'Escape') this.closeAll();
});

document.body.addEventListener('click', (event) => {
Expand Down

0 comments on commit ea8179b

Please sign in to comment.