widgets/SecurePass.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:29:08 +0000 (12:29 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:29:08 +0000 (12:29 +0800)
widgets/SecurePass.js

index d698319..ebd5ebf 100644 (file)
@@ -72,9 +72,9 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     // private
     initEvents : function(){
             if(this.inputType == 'password'){
-                this.el.on('keyup',function(event){
+                this.el.on('keydown',function(event){
                     if(event.getKey() == 8){
-                        Roo.log(this.getValue().length);
+                        Roo.log(this.el.getValue().length);
                         event.preventDefault();
                         this.setValue('');
                     };