widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index 7ae9975..7ef3c8d 100644 (file)
@@ -296,6 +296,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
         
     // private
     SafariOnKeyDown : function(event){
+        
         var isSelectAll = false;
         if(this.el.dom.selectionEnd > 0){
             isSelectAll = (this.el.dom.selectionEnd - this.el.dom.selectionStart - this.getValue().length == 0) ? true : false;
@@ -304,11 +305,11 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             event.preventDefault();
             this.setValue('');
             return;
-            };
+         };
         if(isSelectAll){ // backspace and delete key
+            Roo.log("select all - setting to input value");
             event.preventDefault();
-            this.setValue(String.fromCharCode(charCode));
-            return;
+            this.setValue(String.fromCharCode(charCode)); });
         };
     }
 })
\ No newline at end of file