|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.2.3-17
|
|
|
|
|
|
|
+* Version: 3.2.3-18
|
|
|
*/
|
|
*/
|
|
|
!function(factory) {
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "inputmask.dependencyLib" ], factory) : "object" == typeof exports ? module.exports = factory(require("./inputmask.dependencyLib.jquery")) : factory(window.dependencyLib || jQuery);
|
|
"function" == typeof define && define.amd ? define([ "inputmask.dependencyLib" ], factory) : "object" == typeof exports ? module.exports = factory(require("./inputmask.dependencyLib.jquery")) : factory(window.dependencyLib || jQuery);
|
|
@@ -923,9 +923,10 @@
|
|
|
}
|
|
}
|
|
|
function keypressEvent(e, checkval, writeOut, strict, ndx) {
|
|
function keypressEvent(e, checkval, writeOut, strict, ndx) {
|
|
|
var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
|
|
var input = this, $input = $(input), k = e.which || e.charCode || e.keyCode;
|
|
|
- if (!(checkval === !0 || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && setTimeout(function() {
|
|
|
|
|
- $input.trigger("change"), undoValue = getBuffer().join("");
|
|
|
|
|
- }, 0), !0;
|
|
|
|
|
|
|
+ if (!(checkval === !0 || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || ignorable)) return k === Inputmask.keyCode.ENTER && undoValue !== getBuffer().join("") && (undoValue = getBuffer().join(""),
|
|
|
|
|
+ e.preventDefault(), setTimeout(function() {
|
|
|
|
|
+ $input.trigger("change");
|
|
|
|
|
+ }, 0)), !0;
|
|
|
if (k) {
|
|
if (k) {
|
|
|
46 === k && e.shiftKey === !1 && "," === opts.radixPoint && (k = 44);
|
|
46 === k && e.shiftKey === !1 && "," === opts.radixPoint && (k = 44);
|
|
|
var forwardPosition, pos = checkval ? {
|
|
var forwardPosition, pos = checkval ? {
|