Ext.form.SecurePass.superclass.constructor.call(this, config);
}
-Ext.extend(Ext.form.SecurePass, Ext.form.StarField, {
+Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
/**
* @cfg {String/Object} errors A Error spec, or true for a default spec (defaults to
* {
// private
initEvents : function(){
- Ext.form.SecurePass.superclass.initEvents.call(this);
- this.el.on('keyup', this.checkStrength, this, {buffer:50});
+ Roo.log(this);
+ if(this.inputType == 'password'){
+ this.el.on('keydown',function(event){
+ if((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1){ // 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});
},
// private