Merge pull request #237 from electron/undocked-focused-state
Fix IsDevToolsViewFocused on undocked windows
This commit is contained in:
commit
c0bfc56c5c
1 changed files with 3 additions and 1 deletions
|
@ -142,7 +142,9 @@ bool InspectableWebContentsViewViews::IsDevToolsViewShowing() {
|
|||
}
|
||||
|
||||
bool InspectableWebContentsViewViews::IsDevToolsViewFocused() {
|
||||
if (devtools_web_view_)
|
||||
if (devtools_window_web_view_)
|
||||
return devtools_window_web_view_->HasFocus();
|
||||
else if (devtools_web_view_)
|
||||
return devtools_web_view_->HasFocus();
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue