Browse Source

fix chrome 32

Robin Herbots 12 years ago
parent
commit
deff7af86d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      js/jquery.inputmask.js

+ 2 - 1
js/jquery.inputmask.js

@@ -1182,7 +1182,8 @@
                 var caretPos = caret(input),
                     currentValue = input._valueGet();
                 if (currentValue.charAt(caretPos.begin) != getActiveBuffer()[caretPos.begin] && !isMask(caretPos.begin)) {
-                    //e.keyCode = opts.keyCode.BACKSPACE;
+                    caret(input, seekNext(caretPos.begin));
+                    e.keyCode = opts.keyCode.BACKSPACE;
                     keydownEvent.call(input, e);
                 } else {
                     checkVal(input, false, false);