From 577091310306f6a8fc47d5f4322d04990de07dc9 Mon Sep 17 00:00:00 2001 From: pluja Date: Tue, 23 Feb 2021 15:06:04 +0100 Subject: [PATCH] Add autofocus to search input fields #194 --- app/templates/search.html | 4 ++-- app/templates/ytsearch.html | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/templates/search.html b/app/templates/search.html index 00d83ce..3045698 100644 --- a/app/templates/search.html +++ b/app/templates/search.html @@ -6,7 +6,7 @@ {{ form.hidden_tag() }}

{{ form.username.label }}
- {{ form.username(size=32) }}
+ {{ form.username(size=32, autofocus=true) }}
{% for error in form.username.errors %} [{{ error }}] {% endfor %} @@ -33,4 +33,4 @@ {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/app/templates/ytsearch.html b/app/templates/ytsearch.html index 983b9ef..b0e6e3e 100644 --- a/app/templates/ytsearch.html +++ b/app/templates/ytsearch.html @@ -4,7 +4,7 @@