|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.0-beta.7
|
|
|
+* Version: 4.0.0-beta.8
|
|
|
*/
|
|
|
|
|
|
!function(factory) {
|
|
|
@@ -745,8 +745,8 @@
|
|
|
selection.begin === selection.end - 1 && (selection.begin = seekPrevious(selection.begin + 1),
|
|
|
selection.begin === selection.end - 1 ? caret(input, selection.begin) : caret(input, selection.begin, selection.end));
|
|
|
var keydown = new $.Event("keydown");
|
|
|
- keydown.keyCode = Inputmask.keyCode.DELETE, EventHandlers.keydownEvent.call(input, keydown),
|
|
|
- !1 === opts.insertMode && caret(input, caret(input).begin - 1);
|
|
|
+ keydown.keyCode = opts.numericInput ? Inputmask.keyCode.BACKSPACE : Inputmask.keyCode.DELETE,
|
|
|
+ EventHandlers.keydownEvent.call(input, keydown), !1 === opts.insertMode && caret(input, caret(input).begin - 1);
|
|
|
}
|
|
|
e.preventDefault();
|
|
|
}
|