From 3482cc4f6737d02697c06353e6ab3539a93a601a Mon Sep 17 00:00:00 2001 From: john Date: Mon, 29 Oct 2018 16:31:15 +0800 Subject: [PATCH] Roo/bootstrap/PhoneInput.js roojs-bootstrap.js roojs-bootstrap-debug.js --- Roo/bootstrap/PhoneInput.js | 4 ++-- roojs-bootstrap-debug.js | 4 ++-- roojs-bootstrap.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Roo/bootstrap/PhoneInput.js b/Roo/bootstrap/PhoneInput.js index 4b7723d5ef..72f82f3735 100644 --- a/Roo/bootstrap/PhoneInput.js +++ b/Roo/bootstrap/PhoneInput.js @@ -296,7 +296,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.list.on('mouseover', this.onViewOver, this); this.list.on('mousemove', this.onViewMove, this); this.inputEl().on("keyup", this.onKeyUp, this); - this.inputEl().on("keydown", this.onKeyDown, this); + this.inputEl().on("keypress", this.onKeyPress, this); this.tpl = '
  • {name} +{dialCode}
  • '; @@ -551,7 +551,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.setValue(this.getValue()); }, - onKeyDown : function(e){ + onKeyPress : function(e){ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); } diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 6a3245b484..66693d4716 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -40139,7 +40139,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.list.on('mouseover', this.onViewOver, this); this.list.on('mousemove', this.onViewMove, this); this.inputEl().on("keyup", this.onKeyUp, this); - this.inputEl().on("keydown", this.onKeyDown, this); + this.inputEl().on("keypress", this.onKeyPress, this); this.tpl = '
  • {name} +{dialCode}
  • '; @@ -40394,7 +40394,7 @@ Roo.extend(Roo.bootstrap.PhoneInput, Roo.bootstrap.TriggerField, { this.setValue(this.getValue()); }, - onKeyDown : function(e){ + onKeyPress : function(e){ if(this.allowed.indexOf(String.fromCharCode(e.getCharCode())) === -1){ e.stopEvent(); } diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 3eb7e9c2c0..60dbbe1693 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -1645,7 +1645,7 @@ if(this.indicatorpos=='right'){I.cls='roo-required-indicator text-danger fa fa-l if(p){for(var i=0;i