Part/Customer Picker: Bei Enter auf geändertem Text default verhindern
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 10 Oct 2017 14:21:37 +0000 (16:21 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 10 Oct 2017 14:22:40 +0000 (16:22 +0200)
js/kivi.CustomerVendor.js
js/kivi.Part.js

index 14e02e0..a641adc 100644 (file)
@@ -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,
index eee498e..dd6010b 100644 (file)
@@ -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,