List of character KeyCodes - Javascript events

What are the Javascript event keycodes for characters Plus, Minus, Asterisk, Slash, Equal sign, Backslash, Colon, Semicolor, Question mark, Exclamation, Single quotes, Double quotes, Percent sign, Dollar sign, Ampersand, Underscore and Dash ?
posted on 27.03.2020 at 17:51
0pnshow more
StorStor
Hi,

It might be not reliable to assign the javascript keycodes to those characters, because there are many keyboard layouts internationally, that include different characters or have the standard characters located in different positions. For example there are different keycodes for semicolon on English keyboard and German keyboard.

In case of standard English keyboard layout, the javascript keycodes are:

KeyCodeShift key use
Plus187yes
Minus189no
Asterisk56yes
Slash191no
Plus - numeric keyboard107no
Minus - numeric keyboard109no
Asterisk - numeric keyboard106no
Slash - numeric keyboard111no
Equal sign187no
Backslash220no
Colon186yes
Semicolor186no
Question mark191yes
Exclamation49yes
Single quote192no
Double quotes192yes
Percent sign53yes
Dollar sign52yes
Ampersand55yes
Underscore189yes
Dash189no

posted on 05.04.2020 at 16:35
0pnshow more
TimTim
share on facebookshare on twitter
2020 AnswerTabsTermsContact us
This site uses cookies to improve your experience, for analytics and ads. By continuing to browse this site you agree to our use of cookies.