Merge pull request #237 from electron/undocked-focused-state

Fix IsDevToolsViewFocused on undocked windows
This commit is contained in:
Cheng Zhao 2016-07-13 10:39:51 +09:00 committed by GitHub
commit c0bfc56c5c

View file

@ -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;