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

Adobe AIR Development

Posts: 58
Registered: ‎02-13-2009
My Device: Not Specified

how to focus on the first text field automatically in a qnxstagewebview



I am trying to auto focus on a first text field and the web view is in a OAUTH scenario. I tried adding a listener for the web view using WebViewEvent.DOCUMENT_LOAD_FINISHED and in the callback function issued 

webView.assignFocus(FocusDirection.TOP) in the anticipation that the first text field is where the cursor will be placed automatically which will cause the keyboard popup & zoom factor of the webview automatically adjusted.


The above solution does not work and all I get is a full web view loaded in the assigned view port which does not make it aesthetically pleasing.


Any Ideas??