diff --git a/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js b/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js index 9e437544..7883cf42 100644 --- a/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js +++ b/web_custom_search_quantity/static/src/js/web_custom_search_quantity.js @@ -68,6 +68,12 @@ openerp.web_custom_search_quantity = function (instance) { }).blur(function() { $(this).trigger('change'); }) + .keypress(function(e) { + if(e.which == 13) { + $(this).trigger('change'); + } + }) + .focus() .val(self._limit || '0'); }); }