inputmask
Advanced tools
Comparing version 5.0.9-beta.53 to 5.0.9-beta.54
@@ -1,2 +0,2 @@ | ||
import {keys, ignorables} from "./keycode.js"; | ||
import {keys} from "./keycode.js"; | ||
@@ -53,4 +53,2 @@ export default { | ||
supportsInputType: ["text", "tel", "url", "password", "search"], //list with the supported input types | ||
//specify keyCodes which should not be considered in the keypress event, otherwise the preventDefault will stop their default behavior especially in FF | ||
ignorables: Object.keys(ignorables), | ||
isComplete: null, //override for isComplete - args => buffer, opts - return true || false | ||
@@ -57,0 +55,0 @@ preValidation: null, //hook to preValidate the input. Usefull for validating regardless the definition. args => buffer, pos, char, isSelection, opts, maskset, caretPos, strict => return true/false/command object |
@@ -98,3 +98,3 @@ import { | ||
inputmask.isComposing = (c == keys.Process || c == keys.Unidentified); | ||
inputmask.ignorable = c.length > 1; // opts.ignorables.includes(c); | ||
inputmask.ignorable = c.length > 1 && !(input.tagName.toLowerCase() === "textarea" && k == keys.Enter); | ||
return EventHandlers.keypressEvent.call(this, e, checkval, writeOut, strict, ndx); | ||
@@ -101,0 +101,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
export {keyCode, toKey, toKeyCode, keys, ignorables}; | ||
export {keyCode, toKey, toKeyCode, keys}; | ||
@@ -3,0 +3,0 @@ const ignorables = { |
@@ -145,5 +145,5 @@ import {keys} from "./keycode.js"; | ||
if (input.tagName.toLowerCase() !== "textarea") { | ||
opts.ignorables.push(keys.Enter); | ||
} | ||
// if (input.tagName.toLowerCase() !== "textarea") { | ||
// opts.ignorables.push(keys.Enter); | ||
// } | ||
@@ -150,0 +150,0 @@ var elementType = input.getAttribute("type"); |
{ | ||
"name": "inputmask", | ||
"version": "5.0.9-beta.53", | ||
"version": "5.0.9-beta.54", | ||
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.", | ||
@@ -5,0 +5,0 @@ "main": "dist/inputmask.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1361517
50
17012