javascript - What's the ascii of arrow keys? (Scripting and Programming Editing/Tips)
please don't say: 37(left arrow)38(up arrow)39(right arrow)40(down arrow)! that doesn't work! i've asked this in several forums.
external keys consists of two parts .. the first one is null .. and the second is the value of the keycode .. in c++ for example i can check if the value = null then i read the keycode again and so successfully i discovered the arrow ascii codes (null 75-null 77- null 72-null 80) .. i'm sure of that because i found it in a book for c++ basics .. so what's the problem? .. i can't even say (null) to javascript! .. undefined! ..
what a long story to make a simple action! ..
again .. in short .. anyone know how to detect arrow keys with javascript?
javascript - What's the ascii of arrow keys?
I think this is what you're looking for.
CHR$(0) + CHR$(72) Up
CHR$(0) + CHR$(80) Down
CHR$(0) + CHR$(75) Left
CHR$(0) + CHR$(77) Right
Good Luck!