From ecc6c2e5fa5229b93a5372e266bd43f33db8a1ed Mon Sep 17 00:00:00 2001 From: Zarioza Date: Mon, 26 Jun 2017 16:39:07 +0200 Subject: [PATCH] Update jquery.number.js On mobile devices keyup event return code 229 --- jquery.number.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.number.js b/jquery.number.js index e044b32..f9199b8 100644 --- a/jquery.number.js +++ b/jquery.number.js @@ -476,7 +476,7 @@ } // Stop executing if the user didn't type a number key, a decimal, or a comma. - if( this.value === '' || (code < 48 || code > 57) && (code < 96 || code > 105 ) && code !== 8 && code !== 46 && code !== 110 ) return; + if( this.value === '' || (code < 48 || code > 57) && (code < 96 || code > 105 ) && code !== 8 && code !== 46 && code !== 110 && code !== 229) return; // Re-format the textarea. $this.val($this.val());