We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30a9022 + f71146e commit c75d8f5Copy full SHA for c75d8f5
src/inc/functions.ts
@@ -33,6 +33,7 @@ function showDialogs({ logger }: FragmentPlugin): void {
33
el.__swupFragment.modalShown = true;
34
el.removeAttribute('open');
35
el.showModal?.();
36
+ el.addEventListener('keydown', (e) => e.key === 'Escape' && e.preventDefault());
37
});
38
}
39
0 commit comments