Roo/form/TextField.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 05:13:55 +0000 (13:13 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 05:13:55 +0000 (13:13 +0800)
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){