Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ReginaldoSantos opened this issue Jan 15, 2013 · 0 comments

Comments

@ReginaldoSantos
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant