ソースを参照

Fix2 special latin charset for Chrome/Linux #192

Robin Herbots 11 年 前
コミット
fcfd01f360

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
   "name": "jquery.inputmask",
-  "version": "3.0.66",
+  "version": "3.0.67",
   "main": [
     "./dist/inputmask/jquery.inputmask.js",
     "./dist/inputmask/jquery.inputmask.extensions.js",

+ 1 - 1
build.properties

@@ -7,7 +7,7 @@ distdir = dist
 
 build.major = 3
 build.minor = 0
-build.revision = 66
+build.revision = 67
 
 target = jquery.inputmask.bundle.js
 target.min = jquery.inputmask.bundle.min.js

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


+ 8 - 7
dist/jquery.inputmask.bundle.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2014 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 3.0.66
+* Version: 3.0.67
 */
 
 (function (factory) {
@@ -1312,7 +1312,6 @@
             }
             function keyupEvent(e) {
                 var $input = $(this), input = this, k = e.keyCode, buffer = getBuffer();
-
                 var currentCaretPos = caret(input);
                 var keyupResult = opts.onKeyUp.call(this, e, buffer, currentCaretPos.begin, opts);
                 handleOnKeyResult(input, keyupResult, currentCaretPos);
@@ -1401,6 +1400,7 @@
                 e.preventDefault();
             }
             function compositionupdateEvent(e) { //fix for special latin-charset FF/Linux
+                skipInputEvent = true; //stop inutFallback
                 var input = this;
                 setTimeout(function () {
                     caret(input, caret(input).begin - 1);
@@ -1412,6 +1412,7 @@
                     var forwardPosition = getMaskSet()["p"];
                     writeBuffer(input, getBuffer(), opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition);
                 }, 0);
+                skipInputEvent === true
                 return false;
             }
             function mask(el) {
@@ -1886,7 +1887,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.0.66
+Version: 3.0.67
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2013,7 +2014,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.0.66
+Version: 3.0.67
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2507,7 +2508,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.0.66
+Version: 3.0.67
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2766,7 +2767,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.0.66
+Version: 3.0.67
 
 Regex extensions on the jquery.inputmask base
 Allows for using regular expressions as a mask
@@ -2959,7 +2960,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2014 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 3.0.66
+Version: 3.0.67
 
 Phone extension.
 When using this extension make sure you specify the correct url to get the masks

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


+ 1 - 1
jquery.inputmask.jquery.json

@@ -8,7 +8,7 @@
 		"inputmask",
 		"mask"
     ],
-    "version": "3.0.66",
+    "version": "3.0.67",
     "author": {
         "name": "Robin Herbots",
         "url": "http://github.com/RobinHerbots/jquery.inputmask"

+ 2 - 1
js/jquery.inputmask.js

@@ -1312,7 +1312,6 @@
             }
             function keyupEvent(e) {
                 var $input = $(this), input = this, k = e.keyCode, buffer = getBuffer();
-
                 var currentCaretPos = caret(input);
                 var keyupResult = opts.onKeyUp.call(this, e, buffer, currentCaretPos.begin, opts);
                 handleOnKeyResult(input, keyupResult, currentCaretPos);
@@ -1401,6 +1400,7 @@
                 e.preventDefault();
             }
             function compositionupdateEvent(e) { //fix for special latin-charset FF/Linux
+                skipInputEvent = true; //stop inutFallback
                 var input = this;
                 setTimeout(function () {
                     caret(input, caret(input).begin - 1);
@@ -1412,6 +1412,7 @@
                     var forwardPosition = getMaskSet()["p"];
                     writeBuffer(input, getBuffer(), opts.numericInput ? seekPrevious(forwardPosition) : forwardPosition);
                 }, 0);
+                skipInputEvent === true
                 return false;
             }
             function mask(el) {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "jquery.inputmask",
-  "version": "3.0.66",
+  "version": "3.0.67",
   "description": "jquery.inputmask is a jquery plugin which create an input mask.",
   "main": [
     "./dist/inputmask/jquery.inputmask.js",