onkeypress event in javascript not showing the unicode(hindi/remingtongail) character it is only alerting 'r' on pressing a key.
i am using hindi indic input 3 toolbar to type in laptop.
my javascript code is
function validate(){
var string=event.key;
c = string.charCodeAt(1);
var xyx=String.fromCharCode(c);
alert(xyx);
}
My html text area code is
<textarea onkeydown="validate()"></text area>