Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Visitor
joselondon
Posts: 1
Registered: ‎05-16-2012
My Device: Bold 9900

Blackberry Bold 9900 Swallowing Back Button Key Events On WebWorks 2.3.1 App

Hi there,

 

I'm  unable to trap the back button keydown/keypress/keyup events in a webworks app on a Bold 9900 (but its ok for other buttons). This works fine on a Torch 9800. My code looks like this:

 

 

document.addEventListener("keydown", function(e) { alert("pressed"); e.stopPropagation(); e.stopImmediatePropagation();}, false);

 

 

Any ideas?

 

 

Jose