widgets/SecurePass.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:48:17 +0000 (12:48 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 04:48:17 +0000 (12:48 +0800)
widgets/SecurePass.js

index 17e0f1a..2a72ab5 100644 (file)
@@ -74,7 +74,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             if(this.inputType == 'password'){
                 this.el.on('keydown',function(event){
                     Roo.log(this.getValue().length);
-                    if((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length == 1){ // backspace and delete key
+                    if((event.getKey() == 8 || event.getKey() == 46)){ // backspace and delete key
                         event.preventDefault();
                         this.setValue('');
                     };