widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index fc0d311..33e2f22 100644 (file)
@@ -71,8 +71,13 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
 
     // private
     initEvents : function(){
-        Ext.form.SecurePass.superclass.initEvents.call(this);
-               this.el.on('keyup', this.checkStrength, this, {buffer:50});
+            if(this.inputType == 'password'){
+                this.el.on('keydown',function(e){
+                    Roo.log(e);
+                });
+            }
+            Ext.form.SecurePass.superclass.initEvents.call(this);
+            this.el.on('keyup', this.checkStrength, this, {buffer:50});
        },
 
        // private
@@ -130,7 +135,6 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     
        // private
        checkStrength : function(){
-            Roo.log('in??????');
                var pwd = this.el.getValue();
                if (pwd == this._lastPwd) {
                        return;