Return focus state of window web view when available
This commit is contained in:
parent
6413a4c516
commit
22b3b69e17
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