mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Focus on devtools when it is opened on Mac.
This commit is contained in:
@@ -55,6 +55,9 @@ using namespace brightray;
|
||||
// sizes for them until the setContentsResizingStrategy message.
|
||||
[self addSubview:devToolsView positioned:NSWindowBelow relativeTo:nil];
|
||||
[self update];
|
||||
|
||||
// Focus on web view.
|
||||
devToolsWebContents->RestoreFocus();
|
||||
} else {
|
||||
gfx::ScopedNSDisableScreenUpdates disabler;
|
||||
devToolsWebContents->RemoveOverlayView();
|
||||
|
||||
Reference in New Issue
Block a user