键盘代码为13
的键盘上的键是什么?
switch(key) {
case 37:
$.keynav.goLeft();
break;
case 38:
$.keynav.goUp();
break;
case 39:
$.keynav.goRight();
break;
case 40:
$.keynav.goDown();
break;
case 13:
$.keynav.activate();
break;
}
答案 0 :(得分:149)
键盘上的 Return 或 Enter 键。
答案 1 :(得分:36)
那将是 Enter 键。
答案 2 :(得分:25)
检查ASCII table。
代表CR
或回车,AKA是返回键。
答案 3 :(得分:12)
Keycode 13是 Enter 键
答案 4 :(得分:10)
Enter 键应该有密钥代码13.它不能正常工作吗?
答案 5 :(得分:4)
键码13表示 Enter 键。
如果您想获取更多的密钥代码以及密钥是什么,请转到:https://keycode.info
答案 6 :(得分:1)
function myFunction(event) {
var x = event.charCode;
document.getElementById("demo").innerHTML = "The Unicode value is: " + x;
}
<p>Keycode 13 is: </p>
<button>Enter</button>
<p>Press a key on the keyboard in the input field to get the Unicode character code of the pressed key.</p>
<b>You can test in below</b>
<input type="text" size="40" onkeypress="myFunction(event)">
<p id="demo"></p>
<p><strong>Note:</strong> The charCode property is not supported in IE8 and earlier versions.</p>
答案 7 :(得分:0)
键13的键代码是ENTER键。