kivi.Part.js: PickerPopup: bei Enter nicht timeout abwarten
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 6 Feb 2017 15:30:03 +0000 (16:30 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:44 +0000 (16:32 +0100)
js/kivi.Part.js

index d83336c..a1b02c9 100644 (file)
@@ -597,7 +597,11 @@ namespace('kivi.Part', function(ns) {
         }
       }
       window.clearTimeout(this.timer);
-      this.timer = window.setTimeout(function() { self.update_results() }, 100);
+      if (event.which == KEY.ENTER) {
+        self.update_results();
+      } else {
+        this.timer = window.setTimeout(function() { self.update_results() }, 100);
+      }
     },
     close_popup: function() {
       $('#part_selection').dialog('close');