[FIX] unbound variable usage, courtesy of xal

also use $.ui.keyCode rather than hardocded key code, and normalized attribute e.which

bzr revid: xmo@openerp.com-20120806072732-fprp6l8zv1yexk3d
This commit is contained in:
Xavier Morel 2012-08-06 09:27:32 +02:00
commit df53003aea
1 changed files with 1 additions and 1 deletions

View File

@ -3625,7 +3625,7 @@ instance.web.form.FieldMany2ManyTags = instance.web.form.AbstractField.extend(in
$("textarea", this.$element).focusout(function() {
self.$text.trigger("setInputData", "");
}).keydown(function(e) {
if (event.keyCode === 9 && self._drop_shown) {
if (e.which === $.ui.keyCode.TAB && self._drop_shown) {
self.$text.textext()[0].autocomplete().selectFromDropdown();
}
});