From c16e04df1f7c2b708d783cd19854dc8525a33342 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Fri, 4 Jun 1999 01:48:38 +0000 Subject: [PATCH] Fix for bug 6892. We should not set focus each time a document viewer creates a new window but leave it to the embedding application to decide when to set focus. git-svn-id: svn://10.0.0.236/trunk@33689 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocumentViewer.cpp | 2 +- mozilla/layout/base/nsDocumentViewer.cpp | 2 +- mozilla/layout/base/src/nsDocumentViewer.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/content/base/src/nsDocumentViewer.cpp b/mozilla/content/base/src/nsDocumentViewer.cpp index 8323dcbb1eb..edc1ce40c52 100644 --- a/mozilla/content/base/src/nsDocumentViewer.cpp +++ b/mozilla/content/base/src/nsDocumentViewer.cpp @@ -734,7 +734,7 @@ DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent, // This SetFocus is necessary so the Arrow Key and Page Key events // go to the scrolled view as soon as the Window is created instead of going to // the browser window (this enables keyboard scrolling of the document) - mWindow->SetFocus(); + // mWindow->SetFocus(); return rv; } diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index 8323dcbb1eb..edc1ce40c52 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -734,7 +734,7 @@ DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent, // This SetFocus is necessary so the Arrow Key and Page Key events // go to the scrolled view as soon as the Window is created instead of going to // the browser window (this enables keyboard scrolling of the document) - mWindow->SetFocus(); + // mWindow->SetFocus(); return rv; } diff --git a/mozilla/layout/base/src/nsDocumentViewer.cpp b/mozilla/layout/base/src/nsDocumentViewer.cpp index 8323dcbb1eb..edc1ce40c52 100644 --- a/mozilla/layout/base/src/nsDocumentViewer.cpp +++ b/mozilla/layout/base/src/nsDocumentViewer.cpp @@ -734,7 +734,7 @@ DocumentViewerImpl::MakeWindow(nsNativeWidget aNativeParent, // This SetFocus is necessary so the Arrow Key and Page Key events // go to the scrolled view as soon as the Window is created instead of going to // the browser window (this enables keyboard scrolling of the document) - mWindow->SetFocus(); + // mWindow->SetFocus(); return rv; }