$("#text").bind('keypress', function(e) {
var code = (e.KeyCode ? e.keyCode : e.which);
alert(code);
}
It works great for everything except Alt, Ctrlor Shift.
But in all the tutorials that I found, there should be an echo 17, 18, 19
Why?
source
share