Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the keyCode for "$"?

I am trying to disable all other characters from being entered in text input.

Since to get the $ you have to press the shift-key and the 4-key. I am not sure how you would get the keyCode for somthing like this?

like image 615
Olokoo Avatar asked Aug 08 '12 16:08

Olokoo


People also ask

What is e keycode === 13?

key 13 keycode is for ENTER key.

What is keycode in keyboard?

Key codes are numeric values that correspond to physical keys on the keyboard but do not necessarily correspond to a particular character.

What is the use of key code?

A key code is a series of alphanumeric characters used by locksmiths to create a key.


1 Answers

There is no onkeydown keycode, as previously said by ngmiceli

Although, onkeypress keycode exists and is equal to 36.

JavaScript Event KeyCode Test Page

like image 78
Edward Ruchevits Avatar answered Oct 04 '22 05:10

Edward Ruchevits