What is cleanest in JavaScript or jQuery for filtering control keys. By control keys, I mean any key that is NOT AZ, 0-9, or special characters (that is, !, @, # Etc.). I just want to filter out keys like "Shift", "Alt", F1-F9, Caps Lock, etc.
I'm sure I can check every ASCII code from the event argument ... but I'm wondering if there is a “cleaner” solution.
Note. I am developing an application specifically for IE 8
source
share