focus input after hiding autocomplete menu
This commit is contained in:
parent
6e7a1936dc
commit
4710f80b65
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue