зеркало из https://github.com/mozilla/gecko-dev.git
Bug=78610
author=ashuk ra=edburns File modifed: java/webclient/src_moz/CBrowserContainer.cpp This patch enables focus in a form field inside Webclient. Index: CBrowserContainer.cpp =================================================================== RCS file: /cvsroot/mozilla/java/webclient/src_moz/CBrowserContainer.cpp,v retrieving revision 1.19 diff -u -r1.19 CBrowserContainer.cpp --- CBrowserContainer.cpp 2001/05/10 20:47:06 1.19 +++ CBrowserContainer.cpp 2001/05/11 19:04:09 @@ -28,6 +28,7 @@ #include "CBrowserContainer.h" #include "nsCWebBrowser.h" #include "nsIWebBrowser.h" +#include "nsIWebBrowserFocus.h" #include "nsIRequest.h" #include "nsIDOMNamedNodeMap.h" #include "nsIDOMWindow.h" @@ -619,6 +620,10 @@ nsresult JNICALL CBrowserContainer::doEndDocumentLoad(nsIWebProgress *aWebProgress) { + + nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(mInitContext->webBrowser)); + focus->Activate(); + nsCOMPtr<nsIDOMWindow> domWin; if (nsnull != aWebProgress) {
This commit is contained in:
Родитель
9cb20c1f7d
Коммит
ea2739771e
|
@ -28,6 +28,7 @@
|
|||
#include "CBrowserContainer.h"
|
||||
#include "nsCWebBrowser.h"
|
||||
#include "nsIWebBrowser.h"
|
||||
#include "nsIWebBrowserFocus.h"
|
||||
#include "nsIRequest.h"
|
||||
#include "nsIDOMNamedNodeMap.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
|
@ -619,6 +620,10 @@ CBrowserContainer::doStartDocumentLoad(const PRUnichar *aDocumentName)
|
|||
nsresult JNICALL
|
||||
CBrowserContainer::doEndDocumentLoad(nsIWebProgress *aWebProgress)
|
||||
{
|
||||
|
||||
nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(mInitContext->webBrowser));
|
||||
focus->Activate();
|
||||
|
||||
nsCOMPtr<nsIDOMWindow> domWin;
|
||||
|
||||
if (nsnull != aWebProgress) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче