jquery-meiomask icon indicating copy to clipboard operation
jquery-meiomask copied to clipboard

ALT key (Hold) + numeric KeyPad key combination + ALT key (release)

Open ReginaldoSantos opened this issue 12 years ago • 0 comments

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.

ReginaldoSantos avatar Jan 15 '13 19:01 ReginaldoSantos