From c97986c98206ad1d0bbbc202fb44c783c2e7aa57 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Mon, 22 Feb 2016 13:41:10 -0500
Subject: [PATCH] Focus input after mouse click.

---
 themes/bootstrap3/js/autocomplete.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/themes/bootstrap3/js/autocomplete.js b/themes/bootstrap3/js/autocomplete.js
index 299c1c14004..3641089258b 100644
--- a/themes/bootstrap3/js/autocomplete.js
+++ b/themes/bootstrap3/js/autocomplete.js
@@ -66,6 +66,10 @@
       $.fn.autocomplete.element.html(shell);
       $.fn.autocomplete.element.find('.item').mousedown(function() {
         populate($(this).attr('data-value'), input, {mouse: true});
+        setTimeout(function() {
+          input.focus();
+          hide();
+        }, 10);
       });
       align(input, $.fn.autocomplete.element);
     }
-- 
GitLab