widgets/SecurePass.js
authorAlan Knowles <alan@roojs.com>
Wed, 5 Jun 2013 07:20:44 +0000 (15:20 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 5 Jun 2013 07:20:44 +0000 (15:20 +0800)
widgets/SecurePass.js

index 7ae9975..764b8f3 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,7 +305,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             event.preventDefault();
             this.setValue('');
             return;
-            };
+         };
         if(isSelectAll){ // backspace and delete key
             event.preventDefault();
             this.setValue(String.fromCharCode(charCode));