Created
January 21, 2012 03:38
-
-
Save kishorenc/1651150 to your computer and use it in GitHub Desktop.
Allow only navigational keys on keydown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(e.keyCode>46 && e.keyCode<112 || e.keyCode>123 || e.keyCode == 32 || e.keyCode == 13) return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment