I’m coding a web-portal for a set top box with a custom keyboard.
The keyboard has most of the standard character keys but no backspace!
Since there are some other free custom keys, I would like to map one of these to backspace when I’m in an input field or in a text area.
The question is: How do I programmatically send a backspace to the input field?
Or for that matter: How do I programmatically send any key (like an arrow key) to the input field?
If you are in a web browser, you can’t fake real input events like keyboard and mouse events (for security reasons).
However, you will be able to detect the other custom keys being press, so you could respond to the onKeyDown event for the key you want to use and just update the input field when you detect it being pressed…