Still facing the issue :(.
Few findings.
1. If i drag the label text or any other text present in webpage and
drop it into input textbox, the textfield fills properly with the
selected and dragged text.
2. I tried with event handling using following function.
NS_IMETHODIMP WebBrowserChrome::OnStateChange(nsIWebProgress
*progress, nsIRequest *request, PRUint32 progressStateFlags, nsresult
status)
{
if ((progressStateFlags & STATE_STOP) && (progressStateFlags &
STATE_IS_DOCUMENT))
{
nsCOMPtr<nsIDOMWindow> domWindow;
progress->GetDOMWindow(getter_AddRefs(domWindow));
nsCOMPtr<nsIDOMEventTarget> domEventTarget;
domWindow->QueryInterface(nsIDOMEventTarget::GetIID(),
getter_AddRefs
( domEventTarget ) );
domEventTarget->AddEventListener(NS_LITERAL_STRING
("onkeypress") ,
this, PR_TRUE);
domEventTarget->AddEventListener(NS_LITERAL_STRING
("mousedown") ,
this, PR_TRUE);
}
}
The app is able to capture 'mousedown' event but not the 'onkeypress'
event.
What could be the issue? Any pointers or guidelines to debug this
issue will be highly appreciable.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding