jquery-meiomask
jquery-meiomask copied to clipboard
ALT key (Hold) + numeric KeyPad key combination + ALT key (release)
With the following combination:
ALT key (Hold) + numeric KeyPad key combination + ALT key (release)
it is possible to "brake" the mask. For instance, it is possible to add a letter into a numeric field.
I have solve it doing the following:
in the _onKeyPress method just replace:
this: if(this.ignore) return true;
for this: if(this.ignore && e.which < 32) return true;
Case is _onKeyDown is being called first and setting this.ignore to true. The treatment for invalid character was already done in the _onKeyPress method.
Hope this works for you too and let me know your comments.