widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index feb9b54..26755af 100644 (file)
@@ -292,9 +292,9 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     // private
        ClientSideWeakPassword : function(pwd){
                return this.IsLongEnough(pwd, 6) || !this.IsLongEnough(pwd, 0);
-       },
+       }/*,
         
-    // private
+    // private -- see TextFiedl... - not sure why we are duping the code?
     SafariOnKeyDown : function(event){
         
         var isSelectAll = false;
@@ -309,7 +309,9 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
         if(isSelectAll){ // backspace and delete key
             
             event.preventDefault();
-            this.setValue(String.fromCharCode(event.getKey())); 
+             this.setValue(String.fromCharCode(
+                    this.shiftKey ? event.getKey() : event.getKey().toLowerCase()
+            ));  
         };
-    }
+    } */
 })
\ No newline at end of file