Diable ALT key
I'm up with a requirement to disable the ALT combination key press.
For instance, if we press ALT + 1, we get ☺ character in return. I need to impose a restriction on it for not allowing such characters as a value.
Is there any way to achieve this, any best way to control and imply it on all the textboxes of a page?
Is there any global property on which if we change, it applies on its own, to all the existing textboxes of a page?
It could be probably easier to control the values with an onkeyup events on the textboxes...
Have you thought about implementing validation instead of prevention?
For example, you could implement a field change function on the text boxes that checks to see if the character is valid. If it's not, it erases it and throws an error. I feel this is more standard than preventing the user of something they're use to doing.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread