focus input after hiding autocomplete menu

This commit is contained in:
rolux 2014-12-17 19:27:04 +00:00
parent 6e7a1936dc
commit 4710f80b65

View file

@ -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();
}
}