// private
initEvents : function(){
- $('input[type="password"]').on('keydown',function(event){
- if(event.which == 8){ // backspace
- event.preventDefault();
- $(this).val('');
- }
- });
+ if(this.inputType == 'password'){
+ this.el.on('keydown',function(event){
+ Roo.log(this.getValue().length);
+ 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});
},