Add keyboard event listeners to close Terms of Service modal
Some checks failed
Build and Publish Docker Images / Build and Push Docker Images (push) Failing after 17s

This commit is contained in:
2026-04-14 07:50:41 +02:00
parent 08cdf1a795
commit aa5ca7ff31

View File

@@ -434,7 +434,16 @@
<div class="fixed inset-0 z-40 flex items-center justify-center">
<div
class="absolute inset-0 bg-gray-900 bg-opacity-50"
role="button"
tabindex="0"
aria-label="Close terms of service"
on:click={() => (showTermsModal = false)}
on:keydown={(event) => {
if (event.key === "Enter" || event.key === " ") {
event.preventDefault();
showTermsModal = false;
}
}}
></div>
<div
class="relative z-50 w-full max-w-3xl mx-4 bg-white rounded-2xl shadow-2xl flex flex-col max-h-[90vh]"