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

Native Development

Posts: 206
Registered: ‎05-15-2012
My Device: None
My Carrier: Telus

How can I simulate a key press event within a WebView

The webview is loading external content and I simply want to simulate if somebody were browsing the website on their PC and clicked the 'F1' key. Any ideas?


Everything I'm doing seems to be failing horribly.


I find this website, which simulates keypresses on button presses, and works on the native BB10 browser, so I'm assuming what I'm trying to do is possible:



On the other hand, I need to simulate the keypress on someone else's website that I do not control.

Check out my app, Alien Flow for reddit

And of course, like my post if you found it helpful or informative!