mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 76617 - embedding app can't get input focus. r=sfraser.sr=blizzard@mozilla.org
This commit is contained in:
parent
8a45928d59
commit
e67fea8f0f
@ -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…
Reference in New Issue
Block a user