[jQuery] Disabling Enter key on the page
Hi,
I'm not completely sure this is a jQuery issue or a javascript issue.
Pardon me if I'm not in the right place.
I have disabled the Enter key on the page like that :
$("#body").keypress(function(e) {
if (e.which == 13) {
return false;
}
});
Now the issue I'm facing is that if the user is typing in a textarea
control, she can't type the Enter key anymore to do a new line !
Does anyone know how i can get around that ?
Thanks