I expect the result is 13. but the browser console give me
{
"altKey": false,
"ctrlKey": true,
"shiftKey": false,
"char": undefined,
"charCode": 10,
"key": "Enter",
"keyCode": 10
}
why 10 , is it normal? it show 10 too if I press CTRL+j
$('body').keypress(
({altKey,ctrlKey,shiftKey,char,charCode,key,keyCode})=>
console.log({altKey,ctrlKey,shiftKey,char,charCode,key,keyCode})
);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>