From: Sven Schöling Date: Tue, 10 Oct 2017 14:21:37 +0000 (+0200) Subject: Part/Customer Picker: Bei Enter auf geändertem Text default verhindern X-Git-Tag: release-3.5.4~709 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=bff364a0741fe8f0198d3fd5ac6f00b1cdf0e62d;p=kivitendo-erp.git Part/Customer Picker: Bei Enter auf geändertem Text default verhindern --- diff --git a/js/kivi.CustomerVendor.js b/js/kivi.CustomerVendor.js index 14e02e0d1..a641adc80 100644 --- a/js/kivi.CustomerVendor.js +++ b/js/kivi.CustomerVendor.js @@ -364,6 +364,7 @@ namespace('kivi.CustomerVendor', function(ns) { self.handle_changed_text(); } if (event.which == KEY.ENTER) { + event.preventDefault(); self.handle_changed_text({ match_none: self.o.action.commit_none, match_one: self.o.action.commit_one, diff --git a/js/kivi.Part.js b/js/kivi.Part.js index eee498e3b..dd6010b2c 100644 --- a/js/kivi.Part.js +++ b/js/kivi.Part.js @@ -424,6 +424,7 @@ namespace('kivi.Part', function(ns) { self.handle_changed_text(); } if (event.which == KEY.ENTER) { + event.preventDefault(); self.handle_changed_text({ match_none: self.o.action.commit_none, match_one: self.o.action.commit_one,