--- autocomplete_1.js	2010-06-29 14:42:52.483656819 +0800
+++ autocomplete.js	2010-06-29 14:41:56.520802383 +0800
@@ -58,6 +58,7 @@
       this.selectUp();
       return false;
     default: // all other keys
+      input.ime = e.keyCode;	//keep keydown keyCode 
       return true;
   }
 };
@@ -85,11 +86,16 @@
       return true;
 
     case 9:  // tab
-    case 13: // enter
     case 27: // esc
       this.hidePopup(e.keyCode);
       return true;
 
+    case 13: //enter
+      if(input.ime!=229) {  //not using ime
+     	this.hidePopup(e.keyCode);
+	return true;
+      }  //using ime, need to search
+
     default: // all other keys
       if (input.value.length > 0)
         this.populatePopup();
