浏览代码

ann ames fix

https://github.com/andr-04/inputmask-multi/issues/8

Note that jquery.inputmask-multi.js will be removed once the alternator syntax is mature enough.
Robin Herbots 11 年之前
父节点
当前提交
a097dd73bb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      js/jquery.inputmask-multi.js

+ 2 - 2
js/jquery.inputmask-multi.js

@@ -192,10 +192,10 @@
                             determineActiveMask("multiMaskScope", elmasks);
                             return false;
                         }
-                        if (e.ctrlKey || e.shiftKey || e.altKey) {
+                        if (e.ctrlKey || k == opts.keyCode.SHIFT || e.altKey) {
                             return true;
                         }
-                    } else if (e.type == "keypress" && (e.ctrlKey || e.shiftKey || e.altKey)) {
+                    } else if (e.type == "keypress" && (e.ctrlKey || k == opts.keyCode.SHIFT || e.altKey)) {
                         return true;
                     }
                     $.each(elmasks, function (ndx, lmnt) {