I have the following jQuery function
jQuery.fn.integerMask = function () { return this.each(function () { $(this).keydown(function (e) { var key = (e.keyCode ? e.keyCode : e.which);
which is used to enter numbers. The problem is that SHIFT + 8 causes an asterisk * to be entered. The "8" key in combination with SHIFT seems to be enabled. How can I prevent reception of SHIFT + 8 and insert the character "*"?
source share