KEYCODE summary in JavaScript

xiaoxiao2021-03-06  79

KeyPress's keycode:

Small keyboard large keyboard "-" 45 45 "." 46 46 0 ~ 9 48 ~ 57 48 ~ 57 "M"

109 "N"

110 a ~ z

97 ~ 122 "` "

96 a ~ i

97 ~ 105

KeyDown's Keycode:

Keyboard large keyboard "M"

77 "N"

78 "-" 109 189 "." 110 190 0 ~ 9 96 ~ 105 48 ~ 57 left, upper, right, lower

37 ~ 40

Keyup

of

Keycode

with

KeyDown

the same

,

note

KeyDown

Always

KeyPress

Before triggering

,

use

Keyup

You can get the user button after entering.

转载请注明原文地址:https://www.9cbs.com/read-108887.html

New Post(0)