diff --git a/src/jquery.maskMoney.js b/src/jquery.maskMoney.js index 889ac5f..f0bc316 100644 --- a/src/jquery.maskMoney.js +++ b/src/jquery.maskMoney.js @@ -219,6 +219,10 @@ } } + function getKeyCode(str) { + return str.charCodeAt(str.length - 1); + } + function keypressEvent(e) { e = e || window.event; var key = e.which || e.charCode || e.keyCode, @@ -231,6 +235,11 @@ if (key === undefined) { return false; } + + //for android chrome keycode fix + if (key == 0 || key == 229) { + key = getKeyCode($input.val()); + } // any key except the numbers 0-9 if (key < 48 || key > 57) {