Skip to content

Commit a3d6eb4

Browse files
committed
whoops
1 parent afe57ab commit a3d6eb4

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

src/lib/components/FaceScan.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,25 @@
116116
track.stop();
117117
}
118118
}
119+
120+
function forceClose(
121+
e: KeyboardEvent & {
122+
currentTarget: EventTarget & Window;
123+
},
124+
) {
125+
if(e.ctrlKey && e.key === "Enter") {
126+
notDone = false;
127+
e.preventDefault();
128+
}
129+
}
119130
</script>
120131

132+
<svelte:window
133+
onkeydown={forceClose} />
134+
121135
{#if notDone}
122136
<div
123-
class="fixed z-50 flex h-full w-screen items-center justify-center bg-black/80">
137+
class="fixed z-50 flex h-full w-screen items-center justify-center bg-black/80 overflow-y-auto">
124138
<div class="z-50 m-auto w-3/4 py-4 lg:w-2/3 xl:w-1/2">
125139
<div class="flex items-center rounded-t-lg bg-zinc-900 p-4">
126140
<span class="grow text-lg font-bold">Age Verification Required</span>

0 commit comments

Comments
 (0)