Roo/form/ComboBox.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 20 Sep 2010 08:47:51 +0000 (16:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 20 Sep 2010 08:47:51 +0000 (16:47 +0800)
Roo/form/ComboBox.js

index bfa9180..3baf895 100644 (file)
@@ -999,10 +999,12 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
         var match  = false
         this.store.each(function(v) { 
             if (v.get(combo.displayField).substring(0,1)) {
-                //
+                match = v.id;
+                return false;
             }
-        })
-        Roo.log(String.fromCharCode(e.getKey()));
+        });
+        Roo.log(match);
+        
     }
 
     /**