Hello,
I need to get a key in my web app. When I use the code in Safari I get the keyboard input without using a textbox for example. When I use the same code in a webapp, I didn’t get the keyboard event. How can I change this.
JavaScript
document.addEventListener('keydown', function(event) {
if (event.keyCode == 69) {
zaehlen1();
}
if (event.keyCode == 86) {
zaehlen2();
}
}, true);
End JavaScript