Skip to content

Commit

Permalink
sprinkle some autofocus in places where it's obviously of use
Browse files Browse the repository at this point in the history
  • Loading branch information
cblgh committed Dec 2, 2024
1 parent 984957f commit 107a554
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/edit-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2> {{.Data.ThreadTitle }} </h2>
<label for="content">{{ "Content" | translate }}:</label>
{{ end }}
<label class="visually-hidden" for="content">{{ "Content" | translate }}:</label>
<textarea required name="content" id="content" placeholder='{{ "TextareaPlaceholder" | translate }}'>{{.Data.Content}}</textarea>
<textarea autofocus required name="content" id="content" placeholder='{{ "TextareaPlaceholder" | translate }}'>{{.Data.Content}}</textarea>
<button type="submit">{{ "Save" | translate }}</button>
</div>
<div style="margin-top: 1rem;">
Expand Down
2 changes: 1 addition & 1 deletion html/new-thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h1>{{ "ThreadCreate" | translate }}</h1>
<form method="POST">
<div class="post-container" >
<label for="title">{{ "Title" | translate }}:</label>
<input required name="title" type="text" id="Title">
<input autofocus required name="Title" type="text" id="title">
<label for="content">{{ "Content" | translate }}:</label>
<textarea required name="content" id="content" placeholder='{{ "TextareaPlaceholder" | translate }}'></textarea>
<div id="thread-private">
Expand Down

0 comments on commit 107a554

Please sign in to comment.