[FIX] keyboard handling around read-only facets

bzr revid: xmo@openerp.com-20120403073946-4zq4vmods3ot77ot
This commit is contained in:
Xavier Morel 2012-04-03 09:39:46 +02:00
parent 846349bbe1
commit 81732f3ad0
1 changed files with 12 additions and 0 deletions

View File

@ -664,6 +664,18 @@ openerp.web.search.FilterGroupFacet = VS.ui.SearchFacet.extend({
this.box = $('<input>').val(value);
return this;
},
enableEdit: function () {
this.selectFacet()
},
keydown: function (e) {
var key = VS.app.hotkeys.key(e);
if (key !== 'right') {
return VS.ui.SearchFacet.prototype.keydown.call(this, e);
}
e.preventDefault();
this.deselectFacet();
this.options.app.searchBox.focusNextFacet(this, 1);
}
});
/**