Robin Herbots 11 年 前
コミット
17d15ff1bd

+ 15 - 0
build.properties~

@@ -0,0 +1,15 @@
+# Path for the Google Compiler jar file. By default in the same directory as this properties file.
+GoogleCompiler = tools/compiler.jar
+NugetExe = NuGet.exe
+
+srcdir = js
+distdir = dist
+
+build.major = 2
+build.minor = 4
+build.revision = 20
+
+target = jquery.inputmask.bundle.js
+target.min = jquery.inputmask.bundle.min.js
+nuspec = jquery.inputmask.nuspec
+nuspeclinux = jquery.inputmask.linux.nuspec

BIN
dist/jQuery.InputMask.2.5.0.nupkg


+ 10 - 1
dist/jquery.inputmask.bundle.js

@@ -1184,10 +1184,15 @@
 
 
             function mobileInputEvent(e) {
             function mobileInputEvent(e) {
                 var input = this, $input = $(input);
                 var input = this, $input = $(input);
+				input.focus();
 
 
                 //backspace in chrome32 only fires input event - detect & treat
                 //backspace in chrome32 only fires input event - detect & treat
                 var caretPos = caret(input),
                 var caretPos = caret(input),
                     currentValue = input._valueGet();
                     currentValue = input._valueGet();
+                    
+                console.log(currentValue);
+                currentValue = currentValue.replace(new RegExp("(" + escapeRegex(getActiveBufferTemplate().join('')) + ")*"), "");
+                console.log(currentValue);    
                 //correct caretposition for chrome
                 //correct caretposition for chrome
                 if (caretPos.begin > currentValue.length) {
                 if (caretPos.begin > currentValue.length) {
                     caret(input, currentValue.length);
                     caret(input, currentValue.length);
@@ -1199,7 +1204,6 @@
                     e.keyCode = opts.keyCode.BACKSPACE;
                     e.keyCode = opts.keyCode.BACKSPACE;
                     keydownEvent.call(input, e);
                     keydownEvent.call(input, e);
                 } else { //nonnumerics don't fire keypress 
                 } else { //nonnumerics don't fire keypress 
-                    currentValue = currentValue.replace(new RegExp("(" + escapeRegex(getActiveBufferTemplate().join('')) + ")*"), "");
                     checkVal(input, false, false, currentValue.split(''));
                     checkVal(input, false, false, currentValue.split(''));
                     writeBuffer(input, getActiveBuffer());
                     writeBuffer(input, getActiveBuffer());
                     if (isComplete(getActiveBuffer()) === true)
                     if (isComplete(getActiveBuffer()) === true)
@@ -1382,6 +1386,11 @@
                     // as the other inputevents aren't reliable for the moment we only base on the input event
                     // as the other inputevents aren't reliable for the moment we only base on the input event
                     // needs follow-up
                     // needs follow-up
                     if (android || androidfirefox || androidchrome) {
                     if (android || androidfirefox || androidchrome) {
+                        $el.attr("autocomplete","off")
+                        .attr("autocorrect","off")
+                        .attr("autocapitalize","off")
+                        .attr("spellcheck",false);
+                    
                         $el.unbind("keydown.inputmask", keydownEvent
                         $el.unbind("keydown.inputmask", keydownEvent
                          	).unbind("keypress.inputmask", keypressEvent
                          	).unbind("keypress.inputmask", keypressEvent
                          	).unbind("keyup.inputmask", keyupEvent);
                          	).unbind("keyup.inputmask", keyupEvent);

ファイルの差分が大きいため隠しています
+ 18 - 18
dist/jquery.inputmask.bundle.min.js


ファイルの差分が大きいため隠しています
+ 18 - 18
dist/min/jquery.inputmask.js