Roo/bootstrap/PhoneInput.js
authorjohn <john@roojs.com>
Mon, 29 Oct 2018 08:30:02 +0000 (16:30 +0800)
committerjohn <john@roojs.com>
Mon, 29 Oct 2018 08:30:02 +0000 (16:30 +0800)
Roo/bootstrap/PhoneInput.js

index 72f82f3..0de5d61 100644 (file)
@@ -551,7 +551,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, {
             this.setValue(this.getValue());
         },
         
-        onKeyPress : function(e){
+        onKeyDown : function(e){
             if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){
                 e.stopEvent();
             }