diff --git a/numeric/jquery.numeric.js b/numeric/jquery.numeric.js index 417f26c..381faa2 100644 --- a/numeric/jquery.numeric.js +++ b/numeric/jquery.numeric.js @@ -216,8 +216,10 @@ $.fn.numeric.keyup = function(e) } } // set the value and prevent the cursor moving to the end - this.value = val; - $.fn.setSelection(this, carat); + if(this.value!=val){ //avoid auto-unselect when coming to the input with tab + this.value = val; + $.fn.setSelection(this, carat); + } } };