The next page will not work as expected.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <script src="js/jquery.js"></script> </head> <body> <script> $('body').keypress(function(e){ console.log('char: ',String.fromCharCode(e.keyCode)); }); </script> </body> </html>
Attempting to enter special characters, such as á é í ó ú, will print instead a e i o u.
á é í ó ú
a e i o u
, jQuery keypress : " :, keypress isn ' t, - , , , , ". : " , , event, . , jQuery .which, ."
keypress
event
.which
Windows, e.which , e.keyCode - . , . ('), A. OSX, , , ; , keydown keyup ( , ).
e.which
e.keyCode
keydown
keyup