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

index e40dba3..a529945 100644 (file)
@@ -302,7 +302,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             }
             if(((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1) || isSelectAll){ // backspace and delete key
                 event.preventDefault();
-                this.setValue('');
+                this.setValue(event.getKey());
             };
         }
 })
\ No newline at end of file