kivi.Part.js: im PICKED state auf enter/tab den commit hook auslösen
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 10 Feb 2017 12:57:28 +0000 (13:57 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 13 Feb 2017 15:32:45 +0000 (16:32 +0100)
js/kivi.Part.js

index 174d4e7..4a55a17 100644 (file)
@@ -412,6 +412,9 @@ namespace('kivi.Part', function(ns) {
           self.set_item({});
           return true;
         } else if (self.state == self.STATES.PICKED) {
+          if (self.o.action.on_enter_match_one) {
+            self.run_action(self.o.action.on_enter_match_one);
+          }
           return true;
         }
         if (event.which == KEY.TAB) {