Hi,

I am writing a small js app... I need to use Switch and case for to process a string (textarea).

I don't know why but I am unable to make the script recognize the "Enter key":

case String.fromCharCode(13) :
w = w+String.fromCharCode(13);
break;

All other chars work fine es:
case String.fromCharCode(32) :
w = w+String.fromCharCode(32);
break;

Only Enter is not working...

Any idea?
thx