浏览代码

testmobile

Robin Herbots 12 年之前
父节点
当前提交
42fb5b0eb9
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      js/jquery.inputmask.js

+ 7 - 0
js/jquery.inputmask.js

@@ -1199,7 +1199,9 @@
                     e.keyCode = opts.keyCode.BACKSPACE;
                     keydownEvent.call(input, e);
                 } else { //nonnumerics don't fire keypress 
+                    console.log(currentValue);
                     currentValue = currentValue.replace(new RegExp("(" + escapeRegex(getActiveBufferTemplate().join('')) + ")*"), "");
+                    console.log(currentValue);
                     checkVal(input, false, false, currentValue.split(''));
                     writeBuffer(input, getActiveBuffer());
                     if (isComplete(getActiveBuffer()) === true)
@@ -1382,6 +1384,11 @@
                     // as the other inputevents aren't reliable for the moment we only base on the input event
                     // needs follow-up
                     if (android || androidfirefox || androidchrome) {
+                        $el.attr("autocomplete","off")
+                        .attr("autocorrect","off")
+                        .attr("autocapitalize","off")
+                        .attr("spellcheck",false);
+                    
                         $el.unbind("keydown.inputmask", keydownEvent
                          	).unbind("keypress.inputmask", keypressEvent
                          	).unbind("keyup.inputmask", keyupEvent);