Roo/form/TextField.js
[roojs1] / Roo / form / TextField.js
index 5149408..0edcd21 100644 (file)
@@ -137,6 +137,13 @@ Roo.extend(Roo.form.TextField, Roo.form.Field,  {
             this.el.on("keyup", this.onKeyUp,  this, {buffer:50});
             this.el.on("click", this.autoSize,  this);
         }
+        
+        if(this.el.is('input[type=password]') && Roo.isSafari){
+                this.el.on('keydown', this.SafariOnKeyDown, this);
+                this.el.on("focus", function(){
+                    this.setValue('');
+                }, this);
+            }
     },
 
     processValue : function(value){