mirror of
https://github.com/jgthms/bulma
synced 2026-03-15 02:04:29 -07:00
Merge pull request #3660 from Guiorgy/patch-1
removed deprecated code in example
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user