Bug 76617 - embedding app can't get input focus. r=sfraser.sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@93956 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c08608191a
commit
d4eedf5933
@ -48,6 +48,7 @@
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMHTMLCollection.h"
|
||||
#include "nsIWebBrowserFind.h"
|
||||
#include "nsIWebBrowserFocus.h"
|
||||
#include "nsWeakPtr.h"
|
||||
|
||||
#include <UModalDialogs.h>
|
||||
@ -253,10 +254,16 @@ void CBrowserShell::AdjustCursorSelf(Point /* inPortPt */,
|
||||
|
||||
void CBrowserShell::BeTarget()
|
||||
{
|
||||
nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(mWebBrowser));
|
||||
if (focus)
|
||||
focus->Activate();
|
||||
}
|
||||
|
||||
void CBrowserShell::DontBeTarget()
|
||||
{
|
||||
nsCOMPtr<nsIWebBrowserFocus> focus(do_GetInterface(mWebBrowser));
|
||||
if (focus)
|
||||
focus->Deactivate();
|
||||
}
|
||||
|
||||
Boolean CBrowserShell::HandleKeyPress(const EventRecord &inKeyEvent)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user