Reputation: 15
I couldn't resolve this on Google, but is it possible to register key events happening outside the browser? Reason why is I got a new G19 gaming keyboard. It has a 5-inch LCD screen on which I use LCDHOST to show an HTML file on screen.
My issue here is that I wish to use JavaScript to detect key events so I can show different things when I'm in a game.
The HTML and JavaScript is local at my machine.
Upvotes: 1
Views: 407
Reputation: 6881
If the browser has focus you can get the events. If not you can't. To allow otherwise would be a HUGE security hole.
Upvotes: 2