*************************************************
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.
What could be the issue? Any pointers or guidelines to debug this
issue will be highly appreciable.
While loading any URL through webnavigator, i am now explicitly
activating the browser and giving focus to it.
nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(myWebBrowser));
focus->Activate();
This allowed me to enter text in text box.
Thanks a ton for all those who have helped me in resolving this issue.