From 3919d12a30a96694119d3c142e27af2f1625d15a Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Oct 2018 16:30:02 +0800 Subject: [PATCH] Roo/bootstrap/PhoneInput.js --- Roo/bootstrap/PhoneInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index 72f82f3735..0de5d61b2e 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -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(); } -- 2.39.2