Update modal.html

This commit is contained in:
plusleft 2024-02-11 10:06:44 +00:00 committed by Jeremy Thomas
parent 3dafc77dfe
commit 8d75afd30e

View File

@ -120,7 +120,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Add a keyboard event to close all modals // Add a keyboard event to close all modals
document.addEventListener('keydown', (event) => { document.addEventListener('keydown', (event) => {
if(e.key === "Escape") { if(event.key === "Escape") {
closeAllModals(); closeAllModals();
} }
}); });