Skip to content

Commit

Permalink
autofocus textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Dec 10, 2024
1 parent 57e8827 commit f186878
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Chat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@
textarea.value = "";
}}
>
<!-- svelte-ignore a11y_autofocus -->
<textarea
name="query"
autofocus
on:keydown={(e) => {
if (e.key == "Enter" && !e.shiftKey) {
e.currentTarget.form.requestSubmit();
Expand Down

0 comments on commit f186878

Please sign in to comment.