Fix building on Windows, close #1896
This commit is contained in:
parent
13c1b078f9
commit
5ae9c633ca
2 changed files with 3 additions and 1 deletions
|
@ -726,7 +726,8 @@ void NativeWindowViews::OnWidgetActivationChanged(
|
|||
else
|
||||
NotifyWindowBlur();
|
||||
|
||||
if (active && GetWebContents() && !IsDevToolsOpened())
|
||||
if (active && GetWebContents() &&
|
||||
!inspectable_web_contents()->IsDevToolsViewShowing())
|
||||
GetWebContents()->Focus();
|
||||
|
||||
// Hide menu bar when window is blured.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue