diff --git a/erpnext/accounts/page/pos/pos.js b/erpnext/accounts/page/pos/pos.js index d69a306670..ee4644a51e 100644 --- a/erpnext/accounts/page/pos/pos.js +++ b/erpnext/accounts/page/pos/pos.js @@ -426,11 +426,11 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({ }); this.serach_item.make_input(); - this.serach_item.$input.on("keyup", function () { - setTimeout(function () { + this.serach_item.$input.on("keypress", function (event) { + if((me.serach_item.$input.val() != "") && (event.which == 13)){ me.items = me.get_items(); me.make_item_list(); - }, 1000); + } }); this.search_item_group = this.wrapper.find('.search-item-group');