Focus on devtools when it is opened on Mac.
This commit is contained in:
parent
a4dd362398
commit
e5a57b02d8
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ using namespace brightray;
|
||||||
// sizes for them until the setContentsResizingStrategy message.
|
// sizes for them until the setContentsResizingStrategy message.
|
||||||
[self addSubview:devToolsView positioned:NSWindowBelow relativeTo:nil];
|
[self addSubview:devToolsView positioned:NSWindowBelow relativeTo:nil];
|
||||||
[self update];
|
[self update];
|
||||||
|
|
||||||
|
// Focus on web view.
|
||||||
|
devToolsWebContents->RestoreFocus();
|
||||||
} else {
|
} else {
|
||||||
gfx::ScopedNSDisableScreenUpdates disabler;
|
gfx::ScopedNSDisableScreenUpdates disabler;
|
||||||
devToolsWebContents->RemoveOverlayView();
|
devToolsWebContents->RemoveOverlayView();
|
||||||
|
|
Loading…
Reference in a new issue