Javascript 键码 13 是哪个键

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6086686/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-23 20:10:12  来源:igfitidea点击:

keycode 13 is for which key

javascriptjqueryjquery-uikeyboard

提问by Roadrunner

Which is the key on the keyboard having the keycode as 13?

键盘上的键码是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;
}

回答by JosephH

It's the Returnor Enterkey on keyboard.

它是键盘上的ReturnEnter键。

回答by C???

That would be the Enterkey.

那将是Enter关键。

回答by Oded

Check an ASCII table.

检查ASCII 表

It stands for CR, or Carriage Return, AKA the Returnkey.

它代表CR,或回车,AKAReturn键。

回答by Brian Webster

Keycode 13 is the Enterkey

Keycode 13 是Enter关键

Which keycode for escape key with jQuery

使用 jQuery 转义键的键码

回答by Sarwar Erfan

The Enterkey should have the keycode 13. Is it not working?

Enter键应有的键码13是它不工作?

回答by Nagnath Mungade

key 13 keycode is for ENTER key.

键 13 键码用于 ENTER 键。