From 68bcb66d1f8ecacd037095d77af050141045e114 Mon Sep 17 00:00:00 2001
From: Alexander Artemenko <svetlyak.40wt@gmail.com>
Date: Sat, 18 Apr 2020 16:43:54 +0300
Subject: [PATCH] Autofocus property was added to the search input.

This way it will be a little faster to search a library right after the page load.
Without additional clicks.
---
 static/html/500.html           | 2 +-
 static/html/50x.html           | 2 +-
 templates/_errors/404.html     | 2 +-
 templates/partials/header.html | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/static/html/500.html b/static/html/500.html
index 9a71bfe..bb89c4e 100644
--- a/static/html/500.html
+++ b/static/html/500.html
@@ -13,7 +13,7 @@
   <div id="global-header">
   <h1 class="logo"><a href="/">Quickdocs</a></h1>
   <form class="search-form" method="get" action="/search">
-    <input type="text" name="q" value="" placeholder="Search for projects" />
+    <input type="text" name="q" value="" placeholder="Search for projects" autofocus/>
     <input type="submit" class="lsf" value="search" />
   </form>
 </div>
diff --git a/static/html/50x.html b/static/html/50x.html
index 4f064e7..21ef49c 100644
--- a/static/html/50x.html
+++ b/static/html/50x.html
@@ -13,7 +13,7 @@
   <div id="global-header">
   <h1 class="logo"><a href="/">Quickdocs</a></h1>
   <form class="search-form" method="get" action="/search">
-    <input type="text" name="q" value="" placeholder="Search for projects" />
+    <input type="text" name="q" value="" placeholder="Search for projects" autofocus/>
     <input type="submit" class="lsf" value="search" />
   </form>
 </div>
diff --git a/templates/_errors/404.html b/templates/_errors/404.html
index 0a8a121..c9f7fb4 100644
--- a/templates/_errors/404.html
+++ b/templates/_errors/404.html
@@ -13,7 +13,7 @@
   <div id="global-header">
   <h1 class="logo"><a href="/">Quickdocs</a></h1>
   <form class="search-form" method="get" action="/search">
-    <input type="text" name="q" value="" placeholder="Search for projects" />
+    <input type="text" name="q" value="" placeholder="Search for projects" autofocus/>
     <input type="submit" class="lsf" value="search" />
   </form>
 </div>
diff --git a/templates/partials/header.html b/templates/partials/header.html
index b6c9398..e529e61 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -1,7 +1,7 @@
 <div id="global-header">
   <h1 class="logo"><a href="/">Quickdocs</a></h1>
   <form class="search-form" method="get" action="/search">
-    <input type="text" name="q" value="{{ query }}" placeholder="Search for projects" />
+    <input type="text" name="q" value="{{ query }}" placeholder="Search for projects" autofocus/>
     <input type="submit" class="lsf" value="search" />
   </form>
 </div>