Browse Source

Merge pull request #274 from duderman/Insert

Ignoring shift+ins and ctrl+ins
Robin Herbots 12 years ago
parent
commit
426443a9b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -1252,7 +1252,7 @@
                         } else if (k == opts.keyCode.ESCAPE) { //escape
                             input._valueSet(getActiveMaskSet()["undoBuffer"]);
                             checkVal(input, true, true);
-                        } else if (k == opts.keyCode.INSERT) { //insert
+                        } else if (k == opts.keyCode.INSERT && !(e.shiftKey || e.ctrlKey)) { //insert
                             opts.insertMode = !opts.insertMode;
                             caret(input, !opts.insertMode && pos.begin == getMaskLength() ? pos.begin - 1 : pos.begin);
                         } else if (opts.insertMode == false && !e.shiftKey) {