views:

36

answers:

0

First a little explanation of the need, so I don't get hammered for wanting to add "useless and distracting" sounds to a web-page.

I've had to add two virtual keyboard keys to my web page for the iPad, because these characters are needed for my linguistics oriented app but don't appear either on the standard iPad keyboard or on the context-menu that pops up when you keep your finger down on certain keys, such as the [a] key on the US keyboard. iPad's virtual keyboard's context-menus are not user-configurable at this time: the user cannot add new codepoints to them. Swapping virtual keyboards is not a viable solution for my app.

I am considering adding some audible or visible feedback when the user touches my look-alike keys. Is it possible to make the virtual keyboard's clicking sound in javascript, and to make it quickly enough that it would feel to the user that it happened when the key was touched?

Thanks