widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index 33e2f22..bf66dd6 100644 (file)
@@ -72,9 +72,13 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     // private
     initEvents : function(){
             if(this.inputType == 'password'){
-                this.el.on('keydown',function(e){
-                    Roo.log(e);
-                });
+                this.el.on('keydown',function(event){
+                    if(event.getKey() == 8){
+                        Roo.log(this.getValue().length);
+                        event.preventDefault();
+                        this.setValue('');
+                    };
+                },this);
             }
             Ext.form.SecurePass.superclass.initEvents.call(this);
             this.el.on('keyup', this.checkStrength, this, {buffer:50});