Re: OT: How to detect a keypress, and in which language?
On 7/7/11 12:58 AM, Kent West wrote:
> In a very old thread from January of 2008
> (http://www.linux-archive.org/debian-user/41227-ot-how-detect-keypress-language.html),
> I asked the following question:
<snip>
> I want to write a basic little Morse Code key program ...
<snip>
> case 37: <!-- Arrow Left -->
> document.Form1.KeyName.value = "dit";
> PlaySound("dit");
> break;
>
> case 39: <!-- Arrow Right -->
> document.Form1.KeyName.value = "dah";
> PlaySound("dah");
> break;
>
Oh, forgot to mention, I got the dit.wav and dah.wav from
http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html,
Beep 6 and Beep 7 (renamed and put in the same directory as the
morse.html file).
--
Kent
Reply to: