I recently found that the numpad key codes are not the same as the regular numbers, well at least I had forgot if I knew this before. I was trying to implement an IP address validation filed on keypress. In hindsight, I should have just used a regex \d on the value rather than the making assumptions on key codes.
No comments:
Post a Comment