diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index ee7251f9c6..4e0da24182 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -423,8 +423,12 @@ // Handle blur and Enter key events input.addEventListener('blur', updateCell); - input.addEventListener('keyup', function(e) { - if (e.key === 'Enter') updateCell(); + input.addEventListener('keydown', function(e) { + if (e.key === 'Enter') { + e.preventDefault(); + e.stopPropagation(); + updateCell(); + } }); function updateCell() {