Fixed bluring on hint menus for chrome - fixed #46 and #38

Change-Id: Idc57b612c423d72f54f2d4499e0e91cbf71732ac
diff --git a/dev/js/src/hint/menu.js b/dev/js/src/hint/menu.js
index fcf3fc6..dd99d1f 100644
--- a/dev/js/src/hint/menu.js
+++ b/dev/js/src/hint/menu.js
@@ -27,7 +27,7 @@
 
       // This is only domspecific
       obj.element().addEventListener('blur', function (e) {
-	      this.menu.hide();
+        this.menu.hideWithoutDestruction();
       });
 
       // Focus on input field on hide
@@ -44,6 +44,16 @@
      */ 
     hint : function () {
       return this._hint;
+    },
+
+    /**
+     * Hide the menu just for the moment,
+     * without cleaning up anything.
+     */
+    hideWithoutDestruction : function () {
+      this.element().classList.remove("visible");
+      if (this._hint)
+        this._hint.inputField().element().focus();
     }
   };
 });