fix: commentform ctrl + enter doesnt work

This commit is contained in:
James Xylight committed 2025-06-25 14:43:44 -07:00
1 parent 2a985eccf6
commit 58d5be7027
2 files changed
+13 -4

No files matched your search

@@ -75,7 +75,13 @@
}
</script>
<div class="flex flex-col gap-2 relative">
<form
onsubmit={e => {
e.preventDefault()
submit()
}}
class="flex flex-col gap-2 relative"
>
{#if preview}
<div
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border
@@ -147,7 +153,7 @@
/>
</Button>
<Button
onclick={submit}
submit
color="primary"
rounding="pill"
size="custom"
@@ -163,4 +169,4 @@
{/if}
</MarkdownEditor>
{/if}
</div>
</form>