widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index e0e793d..bf66dd6 100644 (file)
@@ -71,6 +71,15 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
 
     // private
     initEvents : function(){
+            if(this.inputType == 'password'){
+                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});
        },