This code allow Copy way Ctrl+C in the mask input when the control is in read only state.
@@ -1175,7 +1175,7 @@
var handler = eventHandler.handler;
eventHandler.handler = function (e) {
//console.log("triggered " + e.type);
- if (this.readOnly || this.disabled)
+ if (this.disabled || (this.readOnly && !(e.type == "keydown" && e.ctrlKey && e.keyCode == 67)))
e.preventDefault();
else {
switch (e.type) {
@@ -2161,4 +2161,4 @@
};
}
return $.fn.inputmask;
-})(jQuery);
+})(jQuery);