diff --git a/js/modal.js b/js/modal.js index 5b417d0..03acd32 100644 --- a/js/modal.js +++ b/js/modal.js @@ -434,7 +434,7 @@ } }; - $(document).bind('keypress', modalEventEscapeCloseHandler); + $(document).bind('keydown', modalEventEscapeCloseHandler); // Close the open modal content and backdrop function close() {