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 afe57ab commit a3d6eb4Copy full SHA for a3d6eb4
1 file changed
src/lib/components/FaceScan.svelte
@@ -116,11 +116,25 @@
116
track.stop();
117
}
118
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
130
</script>
131
132
+<svelte:window
133
+ onkeydown={forceClose} />
134
135
{#if notDone}
136
<div
- 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">
138
<div class="z-50 m-auto w-3/4 py-4 lg:w-2/3 xl:w-1/2">
139
<div class="flex items-center rounded-t-lg bg-zinc-900 p-4">
140
<span class="grow text-lg font-bold">Age Verification Required</span>
0 commit comments