Did you do this?

nsCOMPtr< nsIWebBrowserFocus > focus( do_GetInterface( mWebBrowser ) );
focus->Activate();

Steve



testols ols wrote:
On Dec 11, 4:23 pm, testols ols <testing...@gmail.com> wrote:
I have embedded Xulrunner into my native application. The webpage
opens up in xulrunner browser and renders the html page correctly.
However the browser is not letting me to enter text into the text
fields or text area. Is there anything specific required for letting
the user enter text.

*************************************************
Xianzhu Wang to me, dev-embedding

Which version of xulrunner are you using?
If 1.9.2, it seems this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=533245
**************************************************

I put a breakpoint at nsEventStateManager.cpp
function nsEventStateManager::PostHandleEvent
 at lines case NS_KEY_DOWN:
  case NS_KEY_UP:
and function nsEventStateManager::PreHandleEvent
 at line case NS_KEY_PRESS:

But the control is not stopping at breakpoints. Strange.... :(
However the cases concerned with mouse events are caught properly.

Someone please help me.
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding


_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to