// private
initEvents : function(){
- Ext.form.SecurePass.superclass.initEvents.call(this);
- Roo.log('run');
- this.el.on('keyup', this.checkStrength, this, {buffer:50});
+ if(this.inputType == 'password'){
+ this.el.on('keydown',function(event){
+ Roo.log(this.getValue().length == 1);
+ if(event.getKey() == 8 && this.getValue().length == 1){
+ event.preventDefault();
+ this.setValue('');
+ };
+ },this);
+ }
+ Ext.form.SecurePass.superclass.initEvents.call(this);
+ this.el.on('keyup', this.checkStrength, this, {buffer:50});
},
// private
},
// private
validateValue : function(value){
- Roo.log('run1');
- Roo.log(value);
if (!Ext.form.TextField.superclass.validateValue.call(this, value)){
return false;
}