EventInjector上的浏览器 [英] EventInjector on browser
问题描述
我如何使用eventinjector上的浏览器在黑莓关闭浏览器。我希望在浏览器加载,使应用程序退出浏览器并返回到主屏幕,模拟pssed手持设备上的ESCAPE键为$ P $。我试着这样做自己,但都没有成功。任何帮助将是最AP preciated。
How do I use an eventinjector on a browser in blackberry to close the browser. I want to simulate the ESCAPE key being pressed on the handheld when the browser loads so that the app exits the browser and goes back to the main screen. I tried doing this myself but have not been successful. Any help would be most appreciated.
推荐答案
如果你真的想控制浏览器,你可以使用 BrowserField
, BrowserField2
在您的应用程序。
If you really want to control browser, you could use BrowserField
, BrowserField2
in your app.
您也可以注入监听键pressing或跟踪哪个应用现在是可见的。但它会很麻烦,因为用户往往应用程序之间切换,并有与现在触摸界面相当多的设备(用户可以关闭页面,而ESC键)。
You could also inject listener for key pressing or tracking which app is visible right now. But it will be really tricky because users are switching between apps often and there are quite many devices with touch interfaces now (user could close page without esc button).
这篇关于EventInjector上的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!