仓库源文站点原文


layout: post title: Keycode对照表(键码对照表) category: 资源 tags: Keycode keywords: Keycode

description: Keycode对照表(键码对照表)

<style type="text/css"> td{ min-width: 100px; text-align: center; } table td:nth-child(odd){ color: #0099CC !important } </style><div> <h4>字母和数字键的键码值(keyCode)</h4> <table> <thead><tr> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> </tr></thead> <tbody> <tr> <td>A</td> <td>65</td> <td>J</td> <td>74</td> <td>S</td> <td>83</td> <td>1</td> <td>49</td> </tr> <tr> <td>B</td> <td>66</td> <td>K</td> <td>75</td> <td>T</td> <td>84</td> <td>2</td> <td>50</td> </tr> <tr> <td>C</td> <td>67</td> <td>L</td> <td>76</td> <td>U</td> <td>85</td> <td>3</td> <td>51</td> </tr> <tr> <td>D</td> <td>68</td> <td>M</td> <td>77</td> <td>V</td> <td>86</td> <td>4</td> <td>52</td> </tr> <tr> <td>E</td> <td>69</td> <td>N</td> <td>78</td> <td>W</td> <td>87</td> <td>5</td> <td>53</td> </tr> <tr> <td>F</td> <td>70</td> <td>O</td> <td>79</td> <td>X</td> <td>88</td> <td>6</td> <td>54</td> </tr> <tr> <td>G</td> <td>71</td> <td>P</td> <td>80</td> <td>Y</td> <td>89</td> <td>7</td> <td>55</td> </tr> <tr> <td>H</td> <td>72</td> <td>Q</td> <td>81</td> <td>Z</td> <td>90</td> <td>8</td> <td>56</td> </tr> <tr> <td>I</td> <td>73</td> <td>R</td> <td>82</td> <td>0</td> <td>48</td> <td>9</td> <td>57</td> </tr> </tbody> </table> <h4>数字键盘上的键的键码值(keyCode)</h4> <table> <thead><tr> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> </tr></thead> <tbody> <tr> <td>0</td> <td>96</td> <td>8</td> <td>104</td> </tr> <tr> <td>1</td> <td>97</td> <td>9</td> <td>105</td> </tr> <tr> <td>2</td> <td>98</td> <td>\*</td> <td>106</td> </tr> <tr> <td>3</td> <td>99</td> <td>+</td> <td>107</td> </tr> <tr> <td>4</td> <td>100</td> <td>Enter</td> <td>108</td> </tr> <tr> <td>5</td> <td>101</td> <td>-</td> <td>109</td> </tr> <tr> <td>6</td> <td>102</td> <td>.</td> <td>110</td> </tr> <tr> <td>7</td> <td>103</td> <td>/</td> <td>111</td> </tr> </tbody> </table> <h4>功能键键码值(keyCode)</h4> <table> <thead><tr> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> </tr></thead> <tbody> <tr> <td>F1</td> <td>112</td> <td>F7</td> <td>118</td> </tr> <tr> <td>F2</td> <td>113</td> <td>F8</td> <td>119</td> </tr> <tr> <td>F3</td> <td>114</td> <td>F9</td> <td>120</td> </tr> <tr> <td>F4</td> <td>115</td> <td>F10</td> <td>121</td> </tr> <tr> <td>F5</td> <td>116</td> <td>F11</td> <td>122</td> </tr> <tr> <td>F6</td> <td>117</td> <td>F12</td> <td>123</td> </tr> </tbody> </table> <h4>控制键键码值(keyCode)</h4> <table> <thead><tr> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> <th>按键</th> <th>键码</th> </tr></thead> <tbody> <tr> <td>BackSpace</td> <td>8</td> <td>Esc</td> <td>27</td> <td>Right Arrow</td> <td>39</td> <td> -_ </td> <td>189</td> </tr> <tr> <td>Tab</td> <td>9</td> <td>Spacebar</td> <td>32</td> <td>Dw Arrow</td> <td>40</td> <td>.></td> <td>190</td> </tr> <tr> <td>Clear</td> <td>12</td> <td>Page Up</td> <td>33</td> <td>Insert</td> <td>45</td> <td>/?</td> <td>191</td> </tr> <tr> <td>Enter</td> <td>13</td> <td>Page Down</td> <td>34</td> <td>Delete</td> <td>46</td> <td> `~ </td> <td>192</td> </tr> <tr> <td>Shift</td> <td>16</td> <td>End</td> <td>35</td> <td>Num Lock</td> <td>144</td> <td>[{</td> <td>219</td> </tr> <tr> <td>Control</td> <td>17</td> <td>Home</td> <td>36</td> <td>;:</td> <td>186</td> <td>\</td> <td>220</td> </tr> <tr> <td>Alt</td> <td>18</td> <td>Left Arrow</td> <td>37</td> <td>=+</td> <td>187</td> <td>]}</td> <td>221</td> </tr> <tr> <td>Cape Lock</td> <td>20</td> <td>Up Arrow</td> <td>38</td> <td>,<</td> <td>188</td> <td>'"</td> <td>222</td> </tr> </tbody> </table> <h4>多媒体键码值(keyCode)</h4> <table> <thead><tr> <th>按键</th> <th>键码</th> </tr></thead> <tbody> <tr> <td>音量加</td> <td>175</td> </tr> <tr> <td>音量减</td> <td>174</td> </tr> <tr> <td>停止</td> <td>179</td> </tr> <tr> <td>静音</td> <td>173</td> </tr> <tr> <td>浏览器</td> <td>172</td> </tr> <tr> <td>邮件</td> <td>180</td> </tr> <tr> <td>搜索</td> <td>170</td> </tr> <tr> <td>收藏</td> <td>171</td> </tr> </tbody> </table> </div>