I am currently developing a web page designed for browsers and mobile devices and am having trouble with blackberry's
The functionality I want is to trigger a popup when a key is pressed. My current code works in browser, but not on the blackberry. I have javascript and javascript popups enabled on my blackberry emulator which is running OS 5.0.
The initial call:
window.onkeyup = GetKeyUp;
And then the method:
function GetKeyUp(e) {
var KeyID = (window.event) ? event.keyCode : e.keyCode;
alert(KeyID);
}
What is not working on Blackberry that would work in browser? Or alternatively:
How do I capture key presses on a blackberry from javascript?
Thanks, Ty
NEWEST DEVELOPMENT: Using "window.addEventListener("keyup",...)" or "document.addEventListener("keyup",...)" instead does not work.