From 4710f80b6579887eb44b2cf732c7b6cdad3221fc Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 17 Dec 2014 19:27:04 +0000 Subject: [PATCH] focus input after hiding autocomplete menu --- source/UI/js/Form/Input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/UI/js/Form/Input.js b/source/UI/js/Form/Input.js index 08901cec..cb34e794 100644 --- a/source/UI/js/Form/Input.js +++ b/source/UI/js/Form/Input.js @@ -394,6 +394,7 @@ Ox.Input = function(options, self) { self.$autocompleteMenu .unbindEvent('select') .hideMenu(); + that.gainFocus(); self.selectEventBound = false; } } @@ -494,6 +495,7 @@ Ox.Input = function(options, self) { self.$autocompleteMenu .unbindEvent('select') .hideMenu(); + that.gainFocus(); self.selectEventBound = false; } } @@ -740,6 +742,7 @@ Ox.Input = function(options, self) { key_enter: function() { if (self.$autocompleteMenu.is(':visible')) { self.$autocompleteMenu.hideMenu(); + that.gainFocus(); submit(); } }