For web apps I'm using mobile devices with barcode scanners for ASP.NET web form apps. The devices only have numeric hardware keyboard. No letters. But users need to be able to additionally type three different letters "F", "Q" and "K" which I want to add as on-screen buttons. Each window of the application has multiple HTML "input" boxes.
The press of a letter "button" from the on-screen button should
- behave exactly like a physical keyboard - add the letter at the right of the currently active HTML input, don't change focus.
- not cause any post-backs or page reloads
I want to avoid using Javascript frameworks and I'd like to stick to standard html/css/javascript.
The question Is it possible to simulate key press events programmatically? is something different because the provided solutions will change focus.