We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a7bce commit e4fd3fcCopy full SHA for e4fd3fc
src/lib/components/Modal/Modal.svelte
@@ -65,6 +65,14 @@
65
<Dialog.Portal>
66
<Dialog.Overlay class="absolute start-0 top-0 flex h-dvh w-screen bg-black/30" />
67
<Dialog.Content
68
+ onkeydown={(e) => {
69
+ if (e.key === 'Escape' && open) {
70
+ // Stop propagation to ensure modals close before immich-web takes over
71
+ e.stopPropagation();
72
+ open = false;
73
+ onClose?.();
74
+ }
75
+ }}
76
class={cleanClass(
77
'absolute start-0 top-0 flex h-dvh w-screen items-center justify-center overflow-hidden sm:p-4',
78
)}
0 commit comments