Window.event.keycode value Daquan

Source: Internet
Author: User

Window.event.keycode value Daquan

Event.keycode value Daquan

1 KeyCode 8 = BackSpace BackSpace

2 keycode 9 = Tab tab

3 KeyCode = Clear

4 KeyCode = Enter

5 KeyCode = shift_l

6 keycode = control_l

7 KeyCode = alt_l

8 KeyCode = Pause

9 KeyCode = Caps_lock

Ten keycode = Escape escape

KeyCode = Space Space

KeyCode = Prior

KeyCode = Next

KeyCode = End

KeyCode = Home

KeyCode PNs = Left

KeyCode = up

KeyCode = Right

KeyCode = Down

KeyCode = Select

KeyCode = Print

KeyCode = Execute

KeyCode = Insert

KeyCode = Delete

KeyCode = Help

keycode = 0 Equal braceright

keycode = 1 Exclam onesuperior

KeyCode = 2 Quotedbl twosuperior

KeyCode Wuyi = 3 section Threesuperior

keycode = 4 Dollar

KeyCode = 5 percent

KeyCode = 6 Ampersand

keycode = 7 Slash braceleft

KeyCode 8 Parenleft Bracketleft

KeyCode 9 Parenright Bracketright

KeyCode = a A

PNS KeyCode = b b

KeyCode = c C

KeyCode--D-D

KeyCode = e e eurosign

KeyCode = f F

42

KeyCode = g g

KeyCode = h H

KeyCode = i I

KeyCode = J J

KeyCode = k K

KeyCode = l l

KeyCode-M MU

KeyCode = n N

Wuyi keycode = o O

KeyCode = P p

KeyCode Bayi = q q at

KeyCode = r R

KeyCode = s S

KeyCode = t T

KeyCode = u u

KeyCode to V V

KeyCode = w W

KeyCode = x x

KeyCode = y y

KeyCode = Z Z

KeyCode = Kp_0 Kp_0

KeyCode = Kp_1 kp_1

KeyCode 98 = kp_2 kp_2

KeyCode = Kp_3 Kp_3

KeyCode = Kp_4 Kp_4

KeyCode 101 = kp_5 Kp_5

KeyCode 102 = Kp_6 Kp_6

KeyCode 103 = kp_7 kp_7

KeyCode 104 = Kp_8 Kp_8

KeyCode = Kp_9 Kp_9

KeyCode 106 = kp_multiply kp_multiply

KeyCode 107 = Kp_add Kp_add

75

KeyCode 108 = Kp_separator Kp_separator

KeyCode 109 = kp_subtract Kp_subtract

KeyCode = Kp_decimal Kp_decimal

KeyCode 111 = kp_divide Kp_divide

KeyCode-F1

Bayi KeyCode 113 = F2

KeyCode-F3

KeyCode-F4

84

85

KeyCode = F5

KeyCode 117 = F6

KeyCode 118 = F7

KeyCode 119 = F8

KeyCode = F9

KeyCode 121 = F10

KeyCode 122 = F11

KeyCode 123 = F12

94 KeyCode 124 = F13

KeyCode = F14

KeyCode 126 = F15

KeyCode 127 = F16

98 keycode = F17

KeyCode 129 = F18

KeyCode-F19

101 KeyCode 131 = F20

102 KeyCode = F21

103 KeyCode 133 = F22

104 KeyCode 134 = F23

KeyCode 135 = F24

106 KeyCode 136 = Num_lock

107 KeyCode 137 = Scroll_lock

108 KeyCode 187 = Acute grave

109 KeyCode 188 = comma semicolon

KeyCode 189 = minus underscore

111 keycode = Period Colon

KeyCode 192 = numbersign Apostrophe

113 KeyCode = Plusminus hyphen Macron

KeyCode 211 =

KeyCode 212 = Copyright Registered

KeyCode 213 = Guillemotleft Guillemotright

117 KeyCode 214 = masculine Ordfeminine

118 KeyCode 215 = AE AE

119 KeyCode 216 = cent yen

KeyCode 217 = Questiondown Exclamdown

121 KeyCode 218 = Onequarter Onehalf threequarters

122 keycode = Less Greater bar

123 KeyCode 221 = plus asterisk Asciitilde

124 KeyCode 227 = Multiply Division

125

126 KeyCode 228 = Acircumflex Acircumflex

127 KeyCode 229 = Ecircumflex Ecircumflex

KeyCode = Icircumflex Icircumflex

129 keycode 231 = Ocircumflex Ocircumflex

KeyCode 232 = Ucircumflex Ucircumflex

131 KeyCode 233 = Ntilde Ntilde

KeyCode 234 = Yacute Yacute

133 KeyCode 235 = Oslash Ooblique

134 KeyCode 236 = aring aring

135 KeyCode 237 = Ccedilla Ccedilla

136 KeyCode 238 = Thorn Thorn

137 KeyCode 239 = ETH ETH

138 KeyCode = diaeresis cedilla currency

139 KeyCode 241 = Agrave Agrave Atilde Atilde

KeyCode 242 = Egrave Egrave

141 KeyCode 243 = Igrave Igrave

142 KeyCode 244 = Ograve Ograve Otilde Otilde

143 keycode 245 = Ugrave Ugrave

144 KeyCode 246 = adiaeresis adiaeresis

145 KeyCode 247 = ediaeresis ediaeresis

146 KeyCode 248 = idiaeresis idiaeresis

147 KeyCode 249 = odiaeresis Odiaeresis

148 keycode = Udiaeresis udiaeresis

149 KeyCode 251 = ssharp question Backslash

KeyCode 252 = Asciicircum Degree

151 KeyCode 253 = 3 Sterling

KeyCode 254 = Mode_switch

153

154 using the KeyCode property of the event object to determine the input key value

155 Eg:if (event.keycode==13) alert ("enter!");

156 Key-Value correspondence table

157 A 0X65 U 0X85

158 B 0X66 V 0X86

159 C 0X67 W 0X87

D 0X68 X 0X88

161 E 0X69 Y 0X89

162 F 0X70 Z 0X90

163 G 0X71 0 0X48

164 H 0X72 1 0X49

165 I 0x73 2 0X50

166 J 0X74 3 0X51

167 K 0x75 4 0X52

168 L 0X76 5 0X53

169 M 0X77 6 0X54

0X78 N 7 0X55

171 O 0X79 8 0X56

172 P 0X80 9 0X57

173 Q 0X81 ESC 0X1B

174 R 0X82 CTRL 0X11

175 S 0X83 SHIFT 0X10

176 T 0X84 ENTER 0XD

If you want to use a key combination, you can use Event.ctrlkey,event.shiftkey,event. Altkey to determine if the CTRL key, SHIFT key, and ALT key are pressed

function Mykeydown () {
var k = Window.event.keyCode;
if (k = = 46) | | (k = = 8) | | (k = = 189) | | (k = = 109) | | (k = = 110) | | (k >= && k <= 57) | | (k >= && k <= 105) | | (k >= Panax Notoginseng && k <= 40))
{ }
else if (k = = 13) {
Window.event.keyCode = 9;
}
else {
Window.event.returnValue = false;
}

Window.event.keycode value Daquan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.