widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index f9cd22c..aa3d958 100644 (file)
@@ -73,12 +73,12 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     initEvents : function(){
             if(this.inputType == 'password'){
                 this.el.on('keydown',function(event){
-                    Roo.log(this);
-                    if(event.getKey() == 8){
-                        event.preventDefault();
-                        //this.setValue('');
-                    };
-                });
+                    Roo.log(this.getValue().length);
+//                    if((event.getKey() == 8 || event.getKey() == 46)){ // backspace and delete key
+//                        event.preventDefault();
+//                        this.setValue('');
+//                    };
+                },this);
             }
             Ext.form.SecurePass.superclass.initEvents.call(this);
             this.el.on('keyup', this.checkStrength, this, {buffer:50});