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 ?
0
give a positive ratinggive a negative rating
27 Mar 2020 at 05:51 PM
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

0
give a positive ratinggive a negative rating
05 Apr 2020 at 04:35 PM
Tim
Share on FacebookShare on TwitterShare on LinkedInSend email
x
x
2024 AnswerTabsTermsContact us