From: Guiorgy Date: Tue, 18 Jul 2023 13:07:03 +0000 (+0400) Subject: removed deprecated code X-Git-Tag: 1.0.0~36^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3660%2Fhead;p=thirdparty%2Fbulma.git removed deprecated code removed `window.event`. replaced `keyCode` with `code`. --- diff --git a/docs/documentation/components/modal.html b/docs/documentation/components/modal.html index cfa82a456..1d570f90c 100644 --- a/docs/documentation/components/modal.html +++ b/docs/documentation/components/modal.html @@ -120,9 +120,7 @@ document.addEventListener('DOMContentLoaded', () => { // 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(); } });