Roo/bootstrap/PhoneInput.js
[roojs1] / roojs-bootstrap-debug.js
index 273ed33..7d7ab06 100644 (file)
@@ -40390,24 +40390,11 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
         
         onKeyUp : function(e){
             
-            var k = e.getKey();
-            var c = e.getCharCode();
-            
-            Roo.log(String.fromCharCode(c));
-            
-            if(
-                    [",", ".", "n"].indexOf(String.fromCharCode(c)) > -1 &&
-                    this.allowed.indexOf(String.fromCharCode(c)) === -1
-            ){
+            if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){
                 e.stopEvent();
             }
             
-            // if(!Roo.isIE && (e.isSpecialKey() || k == e.BACKSPACE || k == e.DELETE)){
-            //     return;
-            // }
-            if(this.allowed.indexOf(String.fromCharCode(c)) === -1){
-                e.stopEvent();
-            }
+            Roo.log(this.getValue());
             
             this.setValue(this.getValue());
         }