I have this interesting problem - I would like to read keystrokes using javascript, but not direct them to the text box.
It's just on computers, and I have this job (as long as the window has focus, javascript can detect keystrokes). However, on tablets running Android and iOS, the operating system ignores keystrokes. The javascript code only gets the keystroke data if I focus on the text field.
Is there any way around this? I would like to read keystrokes on tablets without having to focus in the text box.
javascript mobile tablet keypress
user1873476
source share