mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Merge pull request #3660 from Guiorgy/patch-1
removed deprecated code in example
This commit is contained in:
commit
3a45c86e57
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user