09-03-2008 02:04 AM
Hi all,
we've added the BrowserContentManager as per the example given by RIM to our application. Everything seems to work fine, but certian keys have lost there function. For example, before we added the BrowserContentManager the space key (if held down four seconds) on an 8830 would trigger a function.
The debugger doesn't even seem to acknowledge that space was pressed. I assume this is because the space event is being passed to the browser field and not the screen (where space is captured). Should i just move the keyChar overriden method to the class implementing the browser? Is there a better way to get around this?
Cheers,
Chris.
Solved! Go to Solution.
09-03-2008 09:22 AM
The BrowserField itself could be capturing the key strokes. You can add a KeyListener to the screen to capture keys it is not consuming. Note that the browser field uses many of the same key shortcuts that the BlackBerry Browser uses. Overriding these may impact the browsing experience for your users. I recommend moving your function triggers to MenuItems accessible from the screen's menu instead.
09-05-2008 01:56 AM
Thanks for that advice, I will try KeyListener.
Am I right in saying that KeyListener is not 'passive'? By that i mean it consumes key events, so anything over written in KeyListeners keyChar would no also be passed on to the browserField object?
Cheers,
Chris.
09-05-2008 12:11 PM
09-08-2008 07:22 PM