It's the Return or Enter key on keyboard.

Answer from JosephH on Stack Overflow
🌐
Toptal
toptal.com › developers › keycode › enter
JavaScript Key Code for Enter | Toptal®
{ "key": "Enter", "keyCode": 13, "which": 13, "code": "Enter", "location": 0, "description": "Enter / Return", "unicode": "↵", "path": "/enter" }
Discussions

Having onkeypress="return event.keyCode != 13;" by default for Server Connect Form
Just a suggestion. This is to prevent default form submission on enter so that it won’t conflict with App Connect dmx-on:keypress.enter behaviour. More on community.wappler.io
🌐 community.wappler.io
0
0
April 22, 2019
Can't bind enter key (keycode 13)
Hi @olifolkerd Great job with tabulator, it's really awesome! I think I may have found a bug as I'm unable to bind the enter key (keycode 13). I can bind other keys successfully though. Ple... More on github.com
🌐 github.com
4
April 25, 2019
KeyCode 13
KeyCode 13 ("Enter") giving me a beep ,i will not a beep what is the code to do it ? PS : not KeyAscii = 0 ,i working with the KeyCode and Not KeyPress (KeyAscii As Integer) Eric Eric De Decker vbg.be@vbgroup.nl Licence And Copy Protection AxtiveX Source CodeBook for the... More on tek-tips.com
🌐 tek-tips.com
11
0
January 19, 2001
keycode 13 is for which key
I like this answer better than others because it shows HOW you knew that 13 was a carriage return. I found ascii-code.com easier to use. 2020-08-20T18:38:06.987Z+00:00 ... The Enter key should have the keycode 13. More on stackoverflow.com
🌐 stackoverflow.com
🌐
Reddit
reddit.com › r/learnjavascript › event.keycode == 13 the same on mac and windows?
r/learnjavascript on Reddit: event.keyCode == 13 the same on mac and windows?
January 6, 2021 -

So I have written some code for my brothers birthday present and it needs to function, however he uses mac or linux while I use windows and I was wondering if the enter key is registered the same.

Here's my code

document.getElementById("input").onkeypress = function(event){
                if (event.keyCode == 13 || event.which == 13){
                    newUserLine();
                    runFunction();
                    window.scrollTo(0,document.body.scrollHeight);
                    document.querySelector('#input').value = '';
                }
            }
🌐
Wappler Community
community.wappler.io › feature request
Having onkeypress="return event.keyCode != 13;" by default for Server Connect Form - Feature Request - Wappler Community
April 22, 2019 - Just a suggestion. This is to prevent default form submission on enter so that it won’t conflict with App Connect dmx-on:keypress.enter behaviour.
🌐
GitHub
github.com › olifolkerd › tabulator › issues › 2016
Can't bind enter key (keycode 13) · Issue #2016 · olifolkerd/tabulator
April 25, 2019 - Hi @olifolkerd Great job with tabulator, it's really awesome! I think I may have found a bug as I'm unable to bind the enter key (keycode 13). I can bind other keys successfully though. Please have a look at this demo fiddle, the first c...
Author   rtman
🌐
Toptal
toptal.com › developers › keycode › table
JavaScript Key Code List & Table | Toptal®
Easily find every JavaScript Key Code in one table. Get started now.
🌐
Codecademy
codecademy.com › forum_questions › 55c6078ae39efec04a00066d
window.event.keyCode==13 | Codecademy
// if (window.event.keyCode==13 || window.event.keyCode==27) { //var keycode = evt.charCode; //if ((keyCode == 13)) { divid = "emp_data"; var url = "personal_info.php"; var str = "id=" + document.getElementById("search_data").value; var xmlHttp ...
🌐
Tek-Tips
tek-tips.com › home › forums › software › programmers › languages › visual basic (classic)
KeyCode 13 | Tek-Tips
January 19, 2001 - insert keyascii=0 like this. If KeyAscii = 13 Then KeyAscii = 0 'to strike out the beep wKey = "" For Wi = 1 To wNb wKey = wKey & "{tab}" Next Wi SendKeys wKey End If ^ good luck
Find elsewhere
🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Web › API › KeyboardEvent › keyCode
KeyboardEvent: keyCode property - Web APIs | MDN
The deprecated KeyboardEvent.keyCode read-only property represents a system and implementation dependent numerical code identifying the unmodified value of the pressed key.
🌐
p5.js
p5js.org › reference › p5 › keyCode
keyCode
if (keyCode === 13) { // Code to run if the enter key was pressed. } The same code can be written more clearly using the system variable ENTER which has a value of 13: if (keyCode === ENTER) { // Code to run if the enter key was pressed.
🌐
W3Schools
w3schools.com › jsref › event_key_keycode.asp
KeyboardEvent keyCode Property
altKey (Mouse) altKey (Key) animationName bubbles button buttons cancelable charCode clientX clientY code ctrlKey (Mouse) ctrlKey (Key) currentTarget data defaultPrevented deltaX deltaY deltaZ deltaMode detail elapsedTime elapsedTime eventPhase inputType isTrusted key keyCode location metaKey (Mouse) metaKey (Key) newURL oldURL offsetX offsetY pageX pageY persisted propertyName relatedTarget relatedTarget screenX screenY shiftKey (Mouse) shiftKey (Key) target targetTouches timeStamp touches type which (Mouse) which (Key) view HTML Event Methods
🌐
Experts Exchange
experts-exchange.com › questions › 28357305 › Replace-keyCode-13-with-9.html
Solved: Replace keyCode 13 with 9 | Experts Exchange
February 5, 2014 - function remapEnter() { if(window.event.keyCode == 13) //trap enter { if(document.activeElement.type!='textarea') //if not textarea type { // convert to Tab key window.event.keyCode = 9; return window.event.keyCode; } } }
🌐
GitHub
github.com › react-dropzone › react-dropzone › issues › 730
Cannot type "space" (keyCode 13) on input elements that are children of Dropzone · Issue #730 · react-dropzone/react-dropzone
December 14, 2018 - When there is an input element as a child of a Dropzone component, spaces (keyCode 13) appear in the input as do any other character.
Author   vieira
🌐
Toptal
toptal.com › developers › keycode › f13
JavaScript Key Code for F13 | Toptal®
{ "key": "F13", "keyCode": 124, "which": 124, "code": "F13", "location": 0, "altKey": false, "ctrlKey": false, "metaKey": false, "shiftKey": false, "description": "f13", "path": "/f13" } F12 (123) F14 (125) F15 (126) ⎙
🌐
CSS-Tricks
css-tricks.com › snippets › javascript › javascript-keycodes
KeyboardEvent Value (keyCodes, metaKey, etc) | CSS-Tricks
September 22, 2022 - Here is a decent article (a little out of date) about keycode support and the events that trigger. I am not affiliated with the link at all, just something I came across the other day and it happens to work here as well.
🌐
Mozilla Support
support.mozilla.org › en-US › questions › 998291
Firefox 29 update does not recognize event "keypress" when pressing (intro) (keycode 13) over <select> element on form | Firefox Support Forum | Mozilla Support
Top 25 Contributor 5/2/14, 11:13 AM · Yes, I have an old page with a function that does a similar thing and I see that change also. I make a Fiddle for watching the events on the select: http://jsfiddle.net/rXDsW/ I can't think of a reason for this change, and didn't immediately see something in Bugzilla for it.
🌐
Cambiaresearch
cambiaresearch.com › articles › 15 › javascript-char-codes-key-codes
Javascript Char Codes (Key Codes) - Cambia Research
An interactive javascript key code reference for javascript developers. Includes an interative text box where you can type a key and see it's code along with a complete lookup table.
🌐
Telerik
telerik.com › forums › raddatepicker-dateinput-clientevents-onkeypress-not-firing-for-enter-key-keycode-13
RadDatePicker DateInput-ClientEvents-OnKeyPress Not Firing For Enter Key (keycode 13) in UI for ASP.NET AJAX | Telerik Forums
if (e.keyCode == 13) //do something · } </script> Let me know whether this helps. Best regards, Daniel the Telerik team · Instantly find answers to your questions on the new Telerik Support Portal. Watch a video on how to optimize your support resource searches and check out more tips on the blogs.